public enum ErrorCode extends Enum<ErrorCode>
Enum Constant and Description |
---|
JDBC_CONNECTION_ALREADY_CLOSED_ERROR |
JDBC_DLI_CONNECTION_ERROR |
JDBC_DLI_SERVER_ERROR |
JDBC_DLI_TIMEOUT_ERROR |
JDBC_NO_SUCH_OBJECT_ERROR |
JDBC_RESULT_PARSE_ERROR |
JDBC_SYSTEM_ERROR |
JDBC_URL_PARSE_ERROR |
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode() |
int |
getErrorCodeIndex() |
static ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode JDBC_URL_PARSE_ERROR
public static final ErrorCode JDBC_DLI_TIMEOUT_ERROR
public static final ErrorCode JDBC_DLI_SERVER_ERROR
public static final ErrorCode JDBC_DLI_CONNECTION_ERROR
public static final ErrorCode JDBC_RESULT_PARSE_ERROR
public static final ErrorCode JDBC_CONNECTION_ALREADY_CLOSED_ERROR
public static final ErrorCode JDBC_NO_SUCH_OBJECT_ERROR
public static final ErrorCode JDBC_SYSTEM_ERROR
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode 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 String getErrorCode()
public int getErrorCodeIndex()
Copyright © 2023. All rights reserved.