public enum OMRSRegistryEventErrorCode extends Enum<OMRSRegistryEventErrorCode> implements Serializable
| Enum Constant and Description |
|---|
BAD_REMOTE_CONNECTION |
CONFLICTING_COLLECTION_ID |
NOT_IN_USE |
UNKNOWN_ERROR_CODE |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the default description for the enum, used when there is not natural
language resource bundle available.
|
OMRSEventErrorCode |
getEncoding()
Return the encoding to use in OMRSEvents.
|
String |
getName()
Return the name for the enum, used for message content.
|
int |
getOrdinal()
Return the identifier for the enum, used for indexing arrays etc with the enum.
|
String |
toString()
toString() JSON-style
|
static OMRSRegistryEventErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OMRSRegistryEventErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OMRSRegistryEventErrorCode NOT_IN_USE
public static final OMRSRegistryEventErrorCode CONFLICTING_COLLECTION_ID
public static final OMRSRegistryEventErrorCode BAD_REMOTE_CONNECTION
public static final OMRSRegistryEventErrorCode UNKNOWN_ERROR_CODE
public static OMRSRegistryEventErrorCode[] values()
for (OMRSRegistryEventErrorCode c : OMRSRegistryEventErrorCode.values()) System.out.println(c);
public static OMRSRegistryEventErrorCode 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 int getOrdinal()
public String getName()
public String getDescription()
public OMRSEventErrorCode getEncoding()
public String toString()
toString in class Enum<OMRSRegistryEventErrorCode>Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.