Enum Class ActionErrorEnum

java.lang.Object
java.lang.Enum<ActionErrorEnum>
com.iohao.net.framework.core.exception.ActionErrorEnum
All Implemented Interfaces:
ErrorInformation, Serializable, Comparable<ActionErrorEnum>, Constable

public enum ActionErrorEnum extends Enum<ActionErrorEnum> implements ErrorInformation
Built-in error codes used by the framework's action processing pipeline.

Each constant carries a numeric code and a human-readable message. When the locale is Chinese the original message is returned; otherwise the enum constant name is used.

Author:
渔民小镇
date:
2022-01-14
  • Enum Constant Details

    • systemOtherErrCode

      public static final ActionErrorEnum systemOtherErrCode
      Generic system error.
    • validateErrCode

      public static final ActionErrorEnum validateErrCode
      Parameter validation error.
    • cmdInfoErrorCode

      public static final ActionErrorEnum cmdInfoErrorCode
      Routing / command info error.
    • idleErrorCode

      public static final ActionErrorEnum idleErrorCode
      Heartbeat idle timeout.
    • verifyIdentity

      public static final ActionErrorEnum verifyIdentity
      User not logged in.
    • classNotExist

      public static final ActionErrorEnum classNotExist
      Class does not exist.
    • dataNotExist

      public static final ActionErrorEnum dataNotExist
      Requested data does not exist.
    • forcedOffline

      public static final ActionErrorEnum forcedOffline
      Force user offline.
    • findBindingLogicServerNotExist

      public static final ActionErrorEnum findBindingLogicServerNotExist
      Bound logic server not found.
    • internalCommunicationError

      public static final ActionErrorEnum internalCommunicationError
      Internal inter-server communication error.
    • enterpriseFunction

      public static final ActionErrorEnum enterpriseFunction
      Enterprise-only feature.
  • Method Details

    • values

      public static ActionErrorEnum[] 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 ActionErrorEnum 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
    • getMessage

      public String getMessage()
      Description copied from interface: ErrorInformation
      Return the human-readable error message.
      Specified by:
      getMessage in interface ErrorInformation
      Returns:
      the error message
    • getCode

      public int getCode()
      Description copied from interface: ErrorInformation
      Return the numeric error code.
      Specified by:
      getCode in interface ErrorInformation
      Returns:
      the error code