Class OperationStatusError


  • public final class OperationStatusError
    extends Object
    Error information associated with operation status call.
    • Constructor Detail

      • OperationStatusError

        public OperationStatusError()
    • Method Detail

      • code

        public String code()
        Get the code property: Error code of the operation failure.
        Returns:
        the code value.
      • withCode

        public OperationStatusError withCode​(String code)
        Set the code property: Error code of the operation failure.
        Parameters:
        code - the code value to set.
        Returns:
        the OperationStatusError object itself.
      • message

        public String message()
        Get the message property: Error message displayed if the operation failure.
        Returns:
        the message value.
      • withMessage

        public OperationStatusError withMessage​(String message)
        Set the message property: Error message displayed if the operation failure.
        Parameters:
        message - the message value to set.
        Returns:
        the OperationStatusError object itself.
      • validate

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