public enum CommonErrorCode extends Enum<CommonErrorCode> implements SQLErrorCode
| Enum Constant and Description |
|---|
CIRCUIT_BREAK_MODE |
RUNTIME_EXCEPTION |
SCALING_JOB_NOT_EXIST |
SCALING_OPERATE_FAILED |
SCHEMA_WRITE_LOCKED |
TABLE_LOCK_WAIT_TIMEOUT |
TABLE_LOCKED |
TOO_MANY_CONNECTIONS_EXCEPTION |
UNKNOWN_EXCEPTION |
UNSUPPORTED_COMMAND |
| Modifier and Type | Method and Description |
|---|---|
static CommonErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommonErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetErrorCode, getErrorMessage, getSqlStatepublic static final CommonErrorCode CIRCUIT_BREAK_MODE
public static final CommonErrorCode SCALING_JOB_NOT_EXIST
public static final CommonErrorCode SCALING_OPERATE_FAILED
public static final CommonErrorCode SCHEMA_WRITE_LOCKED
public static final CommonErrorCode TABLE_LOCK_WAIT_TIMEOUT
public static final CommonErrorCode TABLE_LOCKED
public static final CommonErrorCode TOO_MANY_CONNECTIONS_EXCEPTION
public static final CommonErrorCode RUNTIME_EXCEPTION
public static final CommonErrorCode UNSUPPORTED_COMMAND
public static final CommonErrorCode UNKNOWN_EXCEPTION
public static CommonErrorCode[] values()
for (CommonErrorCode c : CommonErrorCode.values()) System.out.println(c);
public static CommonErrorCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022 The Apache Software Foundation. All rights reserved.