Class ExceptionMessages

java.lang.Object
name.martingeisse.grumpyjson.ExceptionMessages

public class ExceptionMessages extends Object
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 Details

    • INTERNAL_ERROR

      public static final String INTERNAL_ERROR
      Generic error message for internal errors that we don't want to expose any details about.
      See Also:
    • UNEXPECTED_PROPERTY

      public static final String UNEXPECTED_PROPERTY
      Error message for an unexpected property in a JSON object.
      See Also:
    • MISSING_PROPERTY

      public static final String MISSING_PROPERTY
      Error message for an missing property in a JSON object.
      See Also: