Enum XtdbOMRSErrorCode
- java.lang.Object
-
- java.lang.Enum<XtdbOMRSErrorCode>
-
- org.odpi.egeria.connectors.juxt.xtdb.auditlog.XtdbOMRSErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<XtdbOMRSErrorCode>,org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageSet
public enum XtdbOMRSErrorCode extends Enum<XtdbOMRSErrorCode> implements org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageSet
The XtdbOMRSErrorCode is used to define first failure data capture (FFDC) for errors that occur when working with XTDB as an OMRS Metadata Repository. It is used in conjunction with both Checked and Runtime (unchecked) exceptions.
The 5 fields in the enum are:- HTTP Error Code - for translating between REST and JAVA - Typically the numbers used are:
- 500 - internal error
- 400 - invalid parameters
- 404 - not found
- Error Message Id - to uniquely identify the message
- Error Message Text - includes placeholder to allow additional values to be captured
- SystemAction - describes the result of the error
- UserAction - describes how a AssetConsumerInterface should correct the error
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinitiongetMessageDefinition()Retrieve a message definition object for an exception.org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinitiongetMessageDefinition(String... params)Retrieve a message definition object for an exception.StringtoString()toString() JSON-stylestatic XtdbOMRSErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static XtdbOMRSErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENTITY_HOME_COLLECTION_REFERENCE
public static final XtdbOMRSErrorCode ENTITY_HOME_COLLECTION_REFERENCE
-
METADATA_COLLECTION_CONFLICT
public static final XtdbOMRSErrorCode METADATA_COLLECTION_CONFLICT
-
ENTITY_PROXY_ONLY
public static final XtdbOMRSErrorCode ENTITY_PROXY_ONLY
-
INVALID_CLASSIFICATION_FOR_ENTITY
public static final XtdbOMRSErrorCode INVALID_CLASSIFICATION_FOR_ENTITY
-
CANNOT_READ_CONFIGURATION
public static final XtdbOMRSErrorCode CANNOT_READ_CONFIGURATION
-
QUERY_TIMEOUT
public static final XtdbOMRSErrorCode QUERY_TIMEOUT
-
NULL_REQUIRED_PROPERTY
public static final XtdbOMRSErrorCode NULL_REQUIRED_PROPERTY
-
INSTANCE_ALREADY_DELETED
public static final XtdbOMRSErrorCode INSTANCE_ALREADY_DELETED
-
INSTANCE_NOT_DELETED
public static final XtdbOMRSErrorCode INSTANCE_NOT_DELETED
-
UNMAPPABLE_PROPERTY
public static final XtdbOMRSErrorCode UNMAPPABLE_PROPERTY
-
INVALID_TYPEDEF
public static final XtdbOMRSErrorCode INVALID_TYPEDEF
-
ENTITY_NOT_CLASSIFIED
public static final XtdbOMRSErrorCode ENTITY_NOT_CLASSIFIED
-
INVALID_ENTITY_FROM_STORE
public static final XtdbOMRSErrorCode INVALID_ENTITY_FROM_STORE
-
INVALID_INSTANCE_FROM_STORE
public static final XtdbOMRSErrorCode INVALID_INSTANCE_FROM_STORE
-
INVALID_RELATIONSHIP_ENDS
public static final XtdbOMRSErrorCode INVALID_RELATIONSHIP_ENDS
-
UNKNOWN_ENUMERATED_VALUE
public static final XtdbOMRSErrorCode UNKNOWN_ENUMERATED_VALUE
-
BAD_INSTANCE_STATUS
public static final XtdbOMRSErrorCode BAD_INSTANCE_STATUS
-
BAD_PROPERTY_FOR_TYPE
public static final XtdbOMRSErrorCode BAD_PROPERTY_FOR_TYPE
-
NO_PROPERTIES_FOR_TYPE
public static final XtdbOMRSErrorCode NO_PROPERTIES_FOR_TYPE
-
BAD_PROPERTY_TYPE
public static final XtdbOMRSErrorCode BAD_PROPERTY_TYPE
-
NULL_PROPERTY_NAME_FOR_INSTANCE
public static final XtdbOMRSErrorCode NULL_PROPERTY_NAME_FOR_INSTANCE
-
NULL_PROPERTY_VALUE_FOR_INSTANCE
public static final XtdbOMRSErrorCode NULL_PROPERTY_VALUE_FOR_INSTANCE
-
NULL_PROPERTY_TYPE_FOR_INSTANCE
public static final XtdbOMRSErrorCode NULL_PROPERTY_TYPE_FOR_INSTANCE
-
RELATIONSHIP_HOME_COLLECTION_REFERENCE
public static final XtdbOMRSErrorCode RELATIONSHIP_HOME_COLLECTION_REFERENCE
-
ENTITY_NOT_KNOWN
public static final XtdbOMRSErrorCode ENTITY_NOT_KNOWN
-
RELATIONSHIP_NOT_KNOWN
public static final XtdbOMRSErrorCode RELATIONSHIP_NOT_KNOWN
-
TYPEDEF_NOT_KNOWN_FOR_INSTANCE
public static final XtdbOMRSErrorCode TYPEDEF_NOT_KNOWN_FOR_INSTANCE
-
UNKNOWN_RUNTIME_ERROR
public static final XtdbOMRSErrorCode UNKNOWN_RUNTIME_ERROR
-
CANNOT_CLOSE_RESOURCE
public static final XtdbOMRSErrorCode CANNOT_CLOSE_RESOURCE
-
FAILED_DISCONNECT
public static final XtdbOMRSErrorCode FAILED_DISCONNECT
-
PERSISTENCE_LAYER_MISMATCH
public static final XtdbOMRSErrorCode PERSISTENCE_LAYER_MISMATCH
-
DUPLICATE_PROPERTIES
public static final XtdbOMRSErrorCode DUPLICATE_PROPERTIES
-
BAD_CATEGORY_FOR_TYPEDEF_ATTRIBUTE
public static final XtdbOMRSErrorCode BAD_CATEGORY_FOR_TYPEDEF_ATTRIBUTE
-
INSTANCE_HOME_NOT_LOCAL
public static final XtdbOMRSErrorCode INSTANCE_HOME_NOT_LOCAL
-
INACTIVE_INSTANCE_TYPE
public static final XtdbOMRSErrorCode INACTIVE_INSTANCE_TYPE
-
REGEX_NOT_IMPLEMENTED
public static final XtdbOMRSErrorCode REGEX_NOT_IMPLEMENTED
-
-
Method Detail
-
values
public static XtdbOMRSErrorCode[] 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 (XtdbOMRSErrorCode c : XtdbOMRSErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XtdbOMRSErrorCode 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 org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinition getMessageDefinition()
Retrieve a message definition object for an exception. This method is used when there are no message inserts.- Specified by:
getMessageDefinitionin interfaceorg.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageSet- Returns:
- message definition object.
-
getMessageDefinition
public org.odpi.openmetadata.frameworks.auditlog.messagesets.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 interfaceorg.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageSet- 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<XtdbOMRSErrorCode>- Returns:
- string description
-
-