Class ExceptionMessages

java.lang.Object
io.github.grumpystuff.grumpyrest.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

    • MISSING_PARAMETER

      public static final String MISSING_PARAMETER
      Error message for a missing parameter, such as in the request path or querystring.
      See Also:
    • UNEXPECTED_PARAMETER

      public static final String UNEXPECTED_PARAMETER
      Error message for an unexpected parameter, such as in the request path or querystring.
      See Also:
    • DUPLICATE_PARAMETER

      public static final String DUPLICATE_PARAMETER
      Error message for a duplicate parameter, such as in the request path or querystring.
      See Also: