Enum Class WampError

java.lang.Object
java.lang.Enum<WampError>
ch.rasc.wamp2spring.WampError
All Implemented Interfaces:
Serializable, Comparable<WampError>, Constable

public enum WampError extends Enum<WampError>
Enumeration of all possible WAMP errors
  • Enum Constant Details

    • NO_SUCH_PROCEDURE

      public static final WampError NO_SUCH_PROCEDURE
    • PROCEDURE_ALREADY_EXISTS

      public static final WampError PROCEDURE_ALREADY_EXISTS
    • NO_SUCH_REGISTRATION

      public static final WampError NO_SUCH_REGISTRATION
    • NO_SUCH_SUBSCRIPTION

      public static final WampError NO_SUCH_SUBSCRIPTION
    • GOODBYE_AND_OUT

      public static final WampError GOODBYE_AND_OUT
    • NETWORK_FAILURE

      public static final WampError NETWORK_FAILURE
    • INVALID_ARGUMENT

      public static final WampError INVALID_ARGUMENT
    • NOT_AUTHORIZED

      public static final WampError NOT_AUTHORIZED
    • OPTION_NOT_ALLOWED

      public static final WampError OPTION_NOT_ALLOWED
    • DISCLOSE_ME_DISALLOWED

      public static final WampError DISCLOSE_ME_DISALLOWED
  • Method Details

    • values

      public static WampError[] 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 WampError 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
    • getExternalValue

      public String getExternalValue()
      Returns the external value of the error message used for message serialisation
      Returns:
      the external value