public enum SecurityOfficerErrorCode extends Enum<SecurityOfficerErrorCode> implements ExceptionMessageSet
| Enum Constant and Description |
|---|
NO_METADATA_COLLECTION |
NULL_LISTENER |
NULL_TOPIC_CONNECTOR |
OMRS_NOT_AVAILABLE |
OMRS_NOT_INITIALIZED |
SERVICE_NOT_INITIALIZED |
UNABLE_TO_SEND_EVENT |
UNEXPECTED_INITIALIZATION_EXCEPTION |
UNEXPECTED_REPOSITORY_EXCEPTION |
| Modifier and Type | Method and Description |
|---|---|
ExceptionMessageDefinition |
getMessageDefinition()
Retrieve a message definition object for an exception.
|
ExceptionMessageDefinition |
getMessageDefinition(String... params)
Retrieve a message definition object for an exception.
|
String |
toString()
toString() JSON-style
|
static SecurityOfficerErrorCode |
valueOf(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.
|
public static final SecurityOfficerErrorCode OMRS_NOT_INITIALIZED
public static final SecurityOfficerErrorCode OMRS_NOT_AVAILABLE
public static final SecurityOfficerErrorCode NO_METADATA_COLLECTION
public static final SecurityOfficerErrorCode SERVICE_NOT_INITIALIZED
public static final SecurityOfficerErrorCode NULL_TOPIC_CONNECTOR
public static final SecurityOfficerErrorCode NULL_LISTENER
public static final SecurityOfficerErrorCode UNABLE_TO_SEND_EVENT
public static final SecurityOfficerErrorCode UNEXPECTED_INITIALIZATION_EXCEPTION
public static final SecurityOfficerErrorCode UNEXPECTED_REPOSITORY_EXCEPTION
public static SecurityOfficerErrorCode[] values()
for (SecurityOfficerErrorCode c : SecurityOfficerErrorCode.values()) System.out.println(c);
public static SecurityOfficerErrorCode 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 nullpublic ExceptionMessageDefinition getMessageDefinition()
getMessageDefinition in interface ExceptionMessageSetpublic ExceptionMessageDefinition getMessageDefinition(String... params)
getMessageDefinition in interface ExceptionMessageSetparams - array of parameters (all strings). They are inserted into the message according to the numbering in the message text.public String toString()
toString in class Enum<SecurityOfficerErrorCode>Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.