public enum OCFDatabaseConnectorErrorCode extends Enum<OCFDatabaseConnectorErrorCode>
| Enum Constant and Description |
|---|
CONNECT_FAIL |
DISCONNECT_FAIL |
ILLEGAL_ACCESS |
ILLEGAL_INSTANCE_CREATION |
NOT_VALID_QUERY |
QUERY_EXECUTION_FAIL |
UNKNOWN_JDBC_DRIVER |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessageId()
Returns the unique identifier for the error message.
|
String |
getFormattedErrorMessage(String... params)
Returns the error message with the placeholders filled out with the supplied parameters.
|
int |
getHTTPErrorCode() |
String |
getSystemAction()
Returns a description of the action taken by the system when the condition that caused this exception was
detected.
|
String |
getUnformattedErrorMessage()
Returns the error message with placeholders for specific details.
|
String |
getUserAction()
Returns instructions of how to resolve the issue reported in this exception.
|
String |
toString()
JSON-style toString
|
static OCFDatabaseConnectorErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OCFDatabaseConnectorErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OCFDatabaseConnectorErrorCode NOT_VALID_QUERY
public static final OCFDatabaseConnectorErrorCode ILLEGAL_ACCESS
public static final OCFDatabaseConnectorErrorCode ILLEGAL_INSTANCE_CREATION
public static final OCFDatabaseConnectorErrorCode CONNECT_FAIL
public static final OCFDatabaseConnectorErrorCode QUERY_EXECUTION_FAIL
public static final OCFDatabaseConnectorErrorCode DISCONNECT_FAIL
public static final OCFDatabaseConnectorErrorCode UNKNOWN_JDBC_DRIVER
public static OCFDatabaseConnectorErrorCode[] values()
for (OCFDatabaseConnectorErrorCode c : OCFDatabaseConnectorErrorCode.values()) System.out.println(c);
public static OCFDatabaseConnectorErrorCode 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 getHTTPErrorCode()
public String getErrorMessageId()
public String getUnformattedErrorMessage()
public String getFormattedErrorMessage(String... params)
params - - strings that plug into the placeholders in the errorMessagepublic String getSystemAction()
public String getUserAction()
public String toString()
toString in class Enum<OCFDatabaseConnectorErrorCode>Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.