Interface WarningsHandler
public interface WarningsHandler
Called if there are warnings to determine if those warnings should fail the
request.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WarningsHandlerThe permissive warnings handler.static final WarningsHandlerThe strict warnings handler. -
Method Summary
Modifier and TypeMethodDescriptionbooleanwarningsShouldFailRequest(List<String> warnings) Determines whether the given list of warnings should fail the request.
-
Field Details
-
PERMISSIVE
The permissive warnings handler. Warnings will not fail the request. -
STRICT
The strict warnings handler. Warnings will fail the request.
-
-
Method Details
-
warningsShouldFailRequest
Determines whether the given list of warnings should fail the request.- Parameters:
warnings- a list of warnings.- Returns:
- boolean indicating if the request should fail.
-