public enum ODFErrorCode extends Enum<ODFErrorCode> implements ExceptionMessageSet
| 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 ODFErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ODFErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ODFErrorCode NULL_DISCOVERY_CONTEXT
public static final ODFErrorCode NO_EMBEDDED_DISCOVERY_SERVICES
public static final ODFErrorCode INVALID_EMBEDDED_DISCOVERY_SERVICE
public static final ODFErrorCode INVALID_DISCOVERY_SERVICE_CONNECTION
public static final ODFErrorCode INVALID_DISCOVERY_SERVICE_CONNECTOR
public static final ODFErrorCode INVALID_ASSET_CONNECTION
public static final ODFErrorCode INVALID_ASSET_CONNECTOR
public static final ODFErrorCode UNEXPECTED_EXCEPTION
public static ODFErrorCode[] values()
for (ODFErrorCode c : ODFErrorCode.values()) System.out.println(c);
public static ODFErrorCode 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<ODFErrorCode>Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.