Package org.xipki.pki
Enum ErrorCode
- java.lang.Object
-
- java.lang.Enum<ErrorCode>
-
- org.xipki.pki.ErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<ErrorCode>
public enum ErrorCode extends Enum<ErrorCode>
Error code.- Author:
- Lijun Liao (xipki)
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()static ErrorCodeofCode(int code)static ErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALREADY_ISSUED
public static final ErrorCode ALREADY_ISSUED
-
BAD_CERT_TEMPLATE
public static final ErrorCode BAD_CERT_TEMPLATE
-
BAD_REQUEST
public static final ErrorCode BAD_REQUEST
-
BAD_POP
public static final ErrorCode BAD_POP
-
CERT_REVOKED
public static final ErrorCode CERT_REVOKED
-
CERT_UNREVOKED
public static final ErrorCode CERT_UNREVOKED
-
CRL_FAILURE
public static final ErrorCode CRL_FAILURE
-
DATABASE_FAILURE
public static final ErrorCode DATABASE_FAILURE
-
INVALID_EXTENSION
public static final ErrorCode INVALID_EXTENSION
-
NOT_PERMITTED
public static final ErrorCode NOT_PERMITTED
-
SYSTEM_FAILURE
public static final ErrorCode SYSTEM_FAILURE
-
SYSTEM_UNAVAILABLE
public static final ErrorCode SYSTEM_UNAVAILABLE
-
UNKNOWN_CERT
public static final ErrorCode UNKNOWN_CERT
-
UNKNOWN_CERT_PROFILE
public static final ErrorCode UNKNOWN_CERT_PROFILE
-
PATH_NOT_FOUND
public static final ErrorCode PATH_NOT_FOUND
-
UNAUTHORIZED
public static final ErrorCode UNAUTHORIZED
-
UNKNOWN_CA
public static final ErrorCode UNKNOWN_CA
-
CLIENT_REQUEST_ENCODE_ERROR
public static final ErrorCode CLIENT_REQUEST_ENCODE_ERROR
-
CLIENT_RESPONSE_DECODE_ERROR
public static final ErrorCode CLIENT_RESPONSE_DECODE_ERROR
-
-
Method Detail
-
values
public static ErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ErrorCode c : ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode()
-
ofCode
public static ErrorCode ofCode(int code)
-
-