Package name.martingeisse.grumpyjson
Class ExceptionMessages
java.lang.Object
name.martingeisse.grumpyjson.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 StringGeneric error message for internal errors that we don't want to expose any details about.static final StringError message for an missing property in a JSON object.static final StringError message for an unexpected property in a JSON object. -
Method Summary
-
Field Details
-
INTERNAL_ERROR
Generic error message for internal errors that we don't want to expose any details about.- See Also:
-
UNEXPECTED_PROPERTY
Error message for an unexpected property in a JSON object.- See Also:
-
MISSING_PROPERTY
Error message for an missing property in a JSON object.- See Also:
-