Package pub.ihub.cloud.rest
Enum Class ResultCode
- All Implemented Interfaces:
Serializable,Comparable<ResultCode>,Constable,IResultCode
标准响应编码
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface pub.ihub.cloud.rest.IResultCode
IResultCode.Series -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()响应编码响应信息static ResultCodeReturns the enum constant of this class with the specified name.static ResultCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface pub.ihub.cloud.rest.IResultCode
getSeries, isAuthenticationError, isAuthorizationError, isBusinessError, isClientError, isDataValidationError, isError, isServerError, isSuccess
-
Enum Constant Details
-
SUCCESS
-
DATA_VALIDATION_ERROR
-
CONSTRAINT_VIOLATION_ERROR
-
AUTHENTICATION_ERROR
-
AUTHORIZATION_ERROR
-
CLIENT_ERROR
-
NOT_FOUND_ERROR
-
INVALID_FORMAT_ERROR
-
SERVER_ERROR
-
BUSINESS_ERROR
-
-
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
-
getCode
public int getCode()响应编码- Specified by:
getCodein interfaceIResultCode- Returns:
- 编码
-
getMessage
响应信息- Specified by:
getMessagein interfaceIResultCode- Returns:
- 信息
-