Enum Class ActionErrorEnum
- All Implemented Interfaces:
ErrorInformation, Serializable, Comparable<ActionErrorEnum>, Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClass does not exist.Routing / command info error.Requested data does not exist.Enterprise-only feature.Bound logic server not found.Force user offline.Heartbeat idle timeout.Internal inter-server communication error.Generic system error.Parameter validation error.User not logged in. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Return the numeric error code.Return the human-readable error message.static ActionErrorEnumReturns the enum constant of this class with the specified name.static ActionErrorEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface ErrorInformation
assertFalse, assertFalse, assertNonNull, assertNonNull, assertNullThrows, assertNullThrows, assertTrue, assertTrue, assertTrueThrows, assertTrueThrows, require
-
Enum Constant Details
-
systemOtherErrCode
Generic system error. -
validateErrCode
Parameter validation error. -
cmdInfoErrorCode
Routing / command info error. -
idleErrorCode
Heartbeat idle timeout. -
verifyIdentity
User not logged in. -
classNotExist
Class does not exist. -
dataNotExist
Requested data does not exist. -
forcedOffline
Force user offline. -
findBindingLogicServerNotExist
Bound logic server not found. -
internalCommunicationError
Internal inter-server communication error. -
enterpriseFunction
Enterprise-only feature.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getMessage
Description copied from interface:ErrorInformationReturn the human-readable error message.- Specified by:
getMessagein interfaceErrorInformation- Returns:
- the error message
-
getCode
public int getCode()Description copied from interface:ErrorInformationReturn the numeric error code.- Specified by:
getCodein interfaceErrorInformation- Returns:
- the error code
-