Enum Class ErrorCodes.ErrorMap

java.lang.Object
java.lang.Enum<ErrorCodes.ErrorMap>
com.priint.pubserver.comet.exception.ErrorCodes.ErrorMap
All Implemented Interfaces:
Serializable, Comparable<ErrorCodes.ErrorMap>, Constable
Enclosing class:
ErrorCodes

public static enum ErrorCodes.ErrorMap extends Enum<ErrorCodes.ErrorMap>
The enum Error map.
  • Enum Constant Details

    • INVALIDSESSION

      public static final ErrorCodes.ErrorMap INVALIDSESSION
      The Invalidsession.
    • UNSUPPORTEDOPERATION

      public static final ErrorCodes.ErrorMap UNSUPPORTEDOPERATION
      The Unsupportedoperation.
    • CONFIGNOTFOUNDEXCEPTION

      public static final ErrorCodes.ErrorMap CONFIGNOTFOUNDEXCEPTION
      The Confignotfoundexception.
  • Method Details

    • values

      public static ErrorCodes.ErrorMap[] 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 ErrorCodes.ErrorMap 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
    • getErrorCode

      public int getErrorCode()
      Gets error code.
      Returns:
      the error code
    • getExceptionClass

      public Class<? extends Throwable> getExceptionClass()
      Gets exception class.
      Returns:
      the exception class
    • getDefaultMessage

      public String getDefaultMessage()
      Gets default message.
      Returns:
      the default message