Package io.github.grumpystuff.grumpyrest
Class ExceptionMessages
java.lang.Object
io.github.grumpystuff.grumpyrest.ExceptionMessages
This class is mostly useful for unit tests: If we hardcoded the error messages at the point these errors occur, then
we would have to duplicate them in the tests.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringError message for a duplicate parameter, such as in the request path or querystring.static final StringError message for a missing parameter, such as in the request path or querystring.static final StringError message for an unexpected parameter, such as in the request path or querystring. -
Method Summary
-
Field Details
-
MISSING_PARAMETER
Error message for a missing parameter, such as in the request path or querystring.- See Also:
-
UNEXPECTED_PARAMETER
Error message for an unexpected parameter, such as in the request path or querystring.- See Also:
-
DUPLICATE_PARAMETER
Error message for a duplicate parameter, such as in the request path or querystring.- See Also:
-