Class OperationResultErrorProperties


  • public final class OperationResultErrorProperties
    extends Object
    Operation result error properties.
    • Constructor Detail

      • OperationResultErrorProperties

        public OperationResultErrorProperties()
    • Method Detail

      • code

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

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

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

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

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