Enum ErrorMessage.Error

java.lang.Object
java.lang.Enum<ErrorMessage.Error>
org.drasyl.peer.connection.message.ErrorMessage.Error
All Implemented Interfaces:
Serializable, Comparable<ErrorMessage.Error>, java.lang.constant.Constable
Enclosing class:
ErrorMessage

public static enum ErrorMessage.Error extends Enum<ErrorMessage.Error>
Specifies the type of the ErrorMessage.
  • Enum Constant Details

    • ERROR_IDENTITY_COLLISION

      public static final ErrorMessage.Error ERROR_IDENTITY_COLLISION
    • ERROR_WRONG_PUBLIC_KEY

      public static final ErrorMessage.Error ERROR_WRONG_PUBLIC_KEY
    • ERROR_OTHER_NETWORK

      public static final ErrorMessage.Error ERROR_OTHER_NETWORK
    • ERROR_PROOF_OF_WORK_INVALID

      public static final ErrorMessage.Error ERROR_PROOF_OF_WORK_INVALID
    • ERROR_NOT_A_SUPER_PEER

      public static final ErrorMessage.Error ERROR_NOT_A_SUPER_PEER
    • ERROR_PEER_UNAVAILABLE

      public static final ErrorMessage.Error ERROR_PEER_UNAVAILABLE
    • ERROR_UNEXPECTED_MESSAGE

      public static final ErrorMessage.Error ERROR_UNEXPECTED_MESSAGE
    • ERROR_INITIAL_CHUNK_MISSING

      public static final ErrorMessage.Error ERROR_INITIAL_CHUNK_MISSING
    • ERROR_CHUNKED_MESSAGE_TIMEOUT

      public static final ErrorMessage.Error ERROR_CHUNKED_MESSAGE_TIMEOUT
    • ERROR_CHUNKED_MESSAGE_PAYLOAD_TOO_LARGE

      public static final ErrorMessage.Error ERROR_CHUNKED_MESSAGE_PAYLOAD_TOO_LARGE
    • ERROR_CHUNKED_MESSAGE_INVALID_CHECKSUM

      public static final ErrorMessage.Error ERROR_CHUNKED_MESSAGE_INVALID_CHECKSUM
    • ERROR_INVALID_SIGNATURE

      public static final ErrorMessage.Error ERROR_INVALID_SIGNATURE
  • Method Details

    • values

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

      public static ErrorMessage.Error valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getDescription

      public String getDescription()
      Returns:
      a human readable representation of the reason.
    • from

      public static ErrorMessage.Error from(String description)