public static class CustomHttpErrors.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
void |
addErrorForCode(int statusCode,
java.lang.String errorMessage)
Adds a matcher to log the provided string if the error matches a particular status code.
|
void |
addErrorForCodeAndUrlContains(int statusCode,
java.lang.String urlContains,
java.lang.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.
|
CustomHttpErrors |
build() |
public CustomHttpErrors build()
public void addErrorForCode(int statusCode, java.lang.String errorMessage)
public void addErrorForCodeAndUrlContains(int statusCode, java.lang.String urlContains, java.lang.String errorMessage)