Enum SecurityOfficerErrorCode
- java.lang.Object
-
- java.lang.Enum<SecurityOfficerErrorCode>
-
- org.odpi.openmetadata.accessservices.securityofficer.api.ffdc.SecurityOfficerErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<SecurityOfficerErrorCode>,ExceptionMessageSet
public enum SecurityOfficerErrorCode extends Enum<SecurityOfficerErrorCode> implements ExceptionMessageSet
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionMessageDefinitiongetMessageDefinition()Retrieve a message definition object for an exception.ExceptionMessageDefinitiongetMessageDefinition(String... params)Retrieve a message definition object for an exception.StringtoString()toString() JSON-stylestatic SecurityOfficerErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static SecurityOfficerErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OMRS_NOT_INITIALIZED
public static final SecurityOfficerErrorCode OMRS_NOT_INITIALIZED
-
OMRS_NOT_AVAILABLE
public static final SecurityOfficerErrorCode OMRS_NOT_AVAILABLE
-
NO_METADATA_COLLECTION
public static final SecurityOfficerErrorCode NO_METADATA_COLLECTION
-
SERVICE_NOT_INITIALIZED
public static final SecurityOfficerErrorCode SERVICE_NOT_INITIALIZED
-
NULL_TOPIC_CONNECTOR
public static final SecurityOfficerErrorCode NULL_TOPIC_CONNECTOR
-
NULL_LISTENER
public static final SecurityOfficerErrorCode NULL_LISTENER
-
UNABLE_TO_SEND_EVENT
public static final SecurityOfficerErrorCode UNABLE_TO_SEND_EVENT
-
UNEXPECTED_INITIALIZATION_EXCEPTION
public static final SecurityOfficerErrorCode UNEXPECTED_INITIALIZATION_EXCEPTION
-
UNEXPECTED_REPOSITORY_EXCEPTION
public static final SecurityOfficerErrorCode UNEXPECTED_REPOSITORY_EXCEPTION
-
-
Method Detail
-
values
public static SecurityOfficerErrorCode[] 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 (SecurityOfficerErrorCode c : SecurityOfficerErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SecurityOfficerErrorCode 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
-
getMessageDefinition
public ExceptionMessageDefinition getMessageDefinition()
Retrieve a message definition object for an exception. This method is used when there are no message inserts.- Specified by:
getMessageDefinitionin interfaceExceptionMessageSet- Returns:
- message definition object.
-
getMessageDefinition
public ExceptionMessageDefinition getMessageDefinition(String... params)
Retrieve a message definition object for an exception. This method is used when there are values to be inserted into the message.- Specified by:
getMessageDefinitionin interfaceExceptionMessageSet- Parameters:
params- array of parameters (all strings). They are inserted into the message according to the numbering in the message text.- Returns:
- message definition object.
-
toString
public String toString()
toString() JSON-style- Overrides:
toStringin classEnum<SecurityOfficerErrorCode>- Returns:
- string description
-
-