Class ErrorDetails


  • public final class ErrorDetails
    extends Object
    Error details.
    • Constructor Detail

      • ErrorDetails

        public ErrorDetails()
    • Method Detail

      • code

        public String code()
        Get the code property: Error code identifying the specific error.
        Returns:
        the code value.
      • withCode

        public ErrorDetails withCode​(String code)
        Set the code property: Error code identifying the specific error.
        Parameters:
        code - the code value to set.
        Returns:
        the ErrorDetails object itself.
      • message

        public String message()
        Get the message property: A human readable error message.
        Returns:
        the message value.
      • withMessage

        public ErrorDetails withMessage​(String message)
        Set the message property: A human readable error message.
        Parameters:
        message - the message value to set.
        Returns:
        the ErrorDetails object itself.
      • additionalProperties

        public Map<String,​Object> additionalProperties()
        Get the additionalProperties property: Error details.
        Returns:
        the additionalProperties value.
      • withAdditionalProperties

        public ErrorDetails withAdditionalProperties​(Map<String,​Object> additionalProperties)
        Set the additionalProperties property: Error details.
        Parameters:
        additionalProperties - the additionalProperties value to set.
        Returns:
        the ErrorDetails object itself.
      • validate

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