Class CustomHttpErrors.Builder
java.lang.Object
org.apache.beam.sdk.extensions.gcp.util.CustomHttpErrors.Builder
- Enclosing class:
CustomHttpErrors
A Builder which allows building immutable CustomHttpErrors object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addErrorForCode
(int statusCode, String errorMessage) Adds a matcher to log the provided string if the error matches a particular status code.void
addErrorForCodeAndUrlContains
(int statusCode, String urlContains, String errorMessage) Adds a matcher to log the provided string if the error matches a particular status code and the url contains a certain string.build()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
addErrorForCode
Adds a matcher to log the provided string if the error matches a particular status code. -
addErrorForCodeAndUrlContains
Adds a matcher to log the provided string if the error matches a particular status code and the url contains a certain string.
-