Class ErrorError


  • public final class ErrorError
    extends Object
    The ErrorError model.
    • Constructor Detail

      • ErrorError

        public ErrorError()
    • Method Detail

      • code

        public String code()
        Get the code property: Brief error code.
        Returns:
        the code value.
      • withCode

        public ErrorError withCode​(String code)
        Set the code property: Brief error code.
        Parameters:
        code - the code value to set.
        Returns:
        the ErrorError object itself.
      • message

        public String message()
        Get the message property: Longer message explaining the details of the error.
        Returns:
        the message value.
      • withMessage

        public ErrorError withMessage​(String message)
        Set the message property: Longer message explaining the details of the error.
        Parameters:
        message - the message value to set.
        Returns:
        the ErrorError object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.