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.
        the code value.
      • message

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

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