Class ValidateResponseError


  • public final class ValidateResponseError
    extends Object
    Error details for when validation fails.
    • Constructor Detail

      • ValidateResponseError

        public ValidateResponseError()
    • Method Detail

      • code

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

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

        public String message()
        Get the message property: Validation error message.
        Returns:
        the message value.
      • withMessage

        public ValidateResponseError withMessage​(String message)
        Set the message property: Validation error message.
        Parameters:
        message - the message value to set.
        Returns:
        the ValidateResponseError object itself.
      • validate

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