Class ErrorResponse


  • public final class ErrorResponse
    extends Object
    Describes the error that occurred.
    • Constructor Detail

      • ErrorResponse

        public ErrorResponse()
    • Method Detail

      • code

        public String code()
        Get the code property: Error code associated with the error that occurred.
        Returns:
        the code value.
      • message

        public String message()
        Get the message property: Describes the error in detail.
        Returns:
        the message value.
      • validate

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