Enum Class CAUVError

java.lang.Object
java.lang.Enum<CAUVError>
com.io7m.cardant.protocol.inventory.cb.internal.CAUVError
All Implemented Interfaces:
CAProtocolMessageValidatorType<com.io7m.seltzer.api.SStructuredError<CAErrorCode>,CAI1Error>, Serializable, Comparable<CAUVError>, Constable

public enum CAUVError extends Enum<CAUVError> implements CAProtocolMessageValidatorType<com.io7m.seltzer.api.SStructuredError<CAErrorCode>,CAI1Error>
A validator.
  • Enum Constant Details

    • ERROR

      public static final CAUVError ERROR
      A validator.
  • Method Details

    • values

      public static CAUVError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CAUVError valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • convertToWire

      public CAI1Error convertToWire(com.io7m.seltzer.api.SStructuredError<CAErrorCode> c)
      Description copied from interface: CAProtocolMessageValidatorType
      Convert a core message to a wire message.
      Specified by:
      convertToWire in interface CAProtocolMessageValidatorType<com.io7m.seltzer.api.SStructuredError<CAErrorCode>,CAI1Error>
      Parameters:
      c - The core message
      Returns:
      The wire message
    • convertFromWire

      public com.io7m.seltzer.api.SStructuredError<CAErrorCode> convertFromWire(CAI1Error m)
      Description copied from interface: CAProtocolMessageValidatorType
      Convert a wire message to a core message.
      Specified by:
      convertFromWire in interface CAProtocolMessageValidatorType<com.io7m.seltzer.api.SStructuredError<CAErrorCode>,CAI1Error>
      Parameters:
      m - The wire message
      Returns:
      The core message