Enum OMRSInstanceEventErrorCode
- java.lang.Object
-
- java.lang.Enum<OMRSInstanceEventErrorCode>
-
- org.odpi.openmetadata.repositoryservices.events.OMRSInstanceEventErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<OMRSInstanceEventErrorCode>
public enum OMRSInstanceEventErrorCode extends Enum<OMRSInstanceEventErrorCode> implements Serializable
OMRSInstanceEventErrorCode defines the list of error codes that are used to record errors in the metadata instance replication process that is used by the repository connectors within the open metadata repository cluster.- NOT_IN_USE: There has been no error detected and so the error code is not in use.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFLICTING_INSTANCESCONFLICTING_TYPENOT_IN_USEUNKNOWN_ERROR_CODE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Return the default description for the enum, used when there is not natural language resource bundle available.OMRSEventErrorCodegetEncoding()Return the encoding to use in OMRSEvents.StringgetName()Return the name for the enum, used for message content.intgetOrdinal()Return the identifier for the enum, used for indexing arrays etc with the enum.StringtoString()toString() JSON-stylestatic OMRSInstanceEventErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static OMRSInstanceEventErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_IN_USE
public static final OMRSInstanceEventErrorCode NOT_IN_USE
-
CONFLICTING_INSTANCES
public static final OMRSInstanceEventErrorCode CONFLICTING_INSTANCES
-
CONFLICTING_TYPE
public static final OMRSInstanceEventErrorCode CONFLICTING_TYPE
-
UNKNOWN_ERROR_CODE
public static final OMRSInstanceEventErrorCode UNKNOWN_ERROR_CODE
-
-
Method Detail
-
values
public static OMRSInstanceEventErrorCode[] 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 (OMRSInstanceEventErrorCode c : OMRSInstanceEventErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OMRSInstanceEventErrorCode 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
-
getOrdinal
public int getOrdinal()
Return the identifier for the enum, used for indexing arrays etc with the enum.- Returns:
- int identifier
-
getName
public String getName()
Return the name for the enum, used for message content.- Returns:
- String name
-
getDescription
public String getDescription()
Return the default description for the enum, used when there is not natural language resource bundle available.- Returns:
- String default description
-
getEncoding
public OMRSEventErrorCode getEncoding()
Return the encoding to use in OMRSEvents.- Returns:
- String OMRSEvent encoding for this errorCode
-
toString
public String toString()
toString() JSON-style- Overrides:
toStringin classEnum<OMRSInstanceEventErrorCode>- Returns:
- string description
-
-