public enum AssetConsumerErrorCode extends Enum<AssetConsumerErrorCode> implements ExceptionMessageSet
| Enum Constant and Description |
|---|
ASSET_NOT_FOUND |
BAD_OUT_TOPIC_CONNECTION |
CONNECTION_NOT_FOUND |
MULTIPLE_ASSETS_FOUND |
NULL_CONNECTOR_RETURNED |
NULL_LISTENER |
OMRS_NOT_INITIALIZED |
PROXY_CONNECTION_FOUND |
UNABLE_TO_SEND_EVENT |
UNKNOWN_ASSET |
WRONG_TYPE_OF_CONNECTOR |
| 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()
JSON-style toString
|
static AssetConsumerErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AssetConsumerErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AssetConsumerErrorCode BAD_OUT_TOPIC_CONNECTION
public static final AssetConsumerErrorCode OMRS_NOT_INITIALIZED
public static final AssetConsumerErrorCode CONNECTION_NOT_FOUND
public static final AssetConsumerErrorCode PROXY_CONNECTION_FOUND
public static final AssetConsumerErrorCode ASSET_NOT_FOUND
public static final AssetConsumerErrorCode MULTIPLE_ASSETS_FOUND
public static final AssetConsumerErrorCode UNKNOWN_ASSET
public static final AssetConsumerErrorCode NULL_LISTENER
public static final AssetConsumerErrorCode UNABLE_TO_SEND_EVENT
public static final AssetConsumerErrorCode NULL_CONNECTOR_RETURNED
public static final AssetConsumerErrorCode WRONG_TYPE_OF_CONNECTOR
public static AssetConsumerErrorCode[] values()
for (AssetConsumerErrorCode c : AssetConsumerErrorCode.values()) System.out.println(c);
public static AssetConsumerErrorCode 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<AssetConsumerErrorCode>Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.