Enum TenantSecurityKMSErrorCodes
java.lang.Object
java.lang.Enum<TenantSecurityKMSErrorCodes>
com.ironcorelabs.tenantsecurity.kms.v1.TenantSecurityKMSErrorCodes
- All Implemented Interfaces:
Serializable
,Comparable<TenantSecurityKMSErrorCodes>
,java.lang.constant.Constable
public enum TenantSecurityKMSErrorCodes extends Enum<TenantSecurityKMSErrorCodes>
Enum of error codes that can occur as part of requests to the Tenant Security Proxy Docker container.
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description int
getCode()
Get the numerical code value.String
getMessage()
Get the human readable error message associated with this error code.static TenantSecurityKMSErrorCodes
valueOf(int errorCode)
Get an instance of an TenantSecurityKMSErrorCodes from the provided numerical code.static TenantSecurityKMSErrorCodes
valueOf(String name)
Returns the enum constant of this type with the specified name.static TenantSecurityKMSErrorCodes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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()Get the numerical code value.- Returns:
- Numerical value for this error code.
-
getMessage
Get the human readable error message associated with this error code.- Returns:
- Readable error message for this error code.
-
valueOf
Get an instance of an TenantSecurityKMSErrorCodes from the provided numerical code.- Parameters:
errorCode
- The numerical error code to lookup.- Returns:
- Instance of TenantSecurityKMSErrorCodes or null if provided code doesn't exist.
-