Enum Class WfException.ErrorType

java.lang.Object
java.lang.Enum<WfException.ErrorType>
org.whiteflagprotocol.java.WfException.ErrorType
All Implemented Interfaces:
Serializable, Comparable<WfException.ErrorType>, Constable
Enclosing class:
WfException

public static enum WfException.ErrorType extends Enum<WfException.ErrorType>
Whiteflag protocol error categories

These error categories are used by the WfException class to specify the type of error.

  • Enum Constant Details

    • WF_GENERIC_ERROR

      public static final WfException.ErrorType WF_GENERIC_ERROR
      Generic Whiteflag protocol error
    • WF_METADATA_ERROR

      public static final WfException.ErrorType WF_METADATA_ERROR
      Incorrect or missing Whiteflag message metadata
    • WF_FORMAT_ERROR

      public static final WfException.ErrorType WF_FORMAT_ERROR
      Whiteflag message format or field value error
    • WF_REFERENCE_ERROR

      public static final WfException.ErrorType WF_REFERENCE_ERROR
      Whiteflag message reference error
    • WF_AUTH_ERROR

      public static final WfException.ErrorType WF_AUTH_ERROR
      Whiteflag authentication error
    • WF_SIGN_ERROR

      public static final WfException.ErrorType WF_SIGN_ERROR
      Whiteflag digital signature error
    • WF_CRYPTO_ERROR

      public static final WfException.ErrorType WF_CRYPTO_ERROR
      Whiteflag cryptographic error
  • Method Details

    • values

      public static WfException.ErrorType[] 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 WfException.ErrorType 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