com.ibm.pdq.runtime.exception
Enum ErrorType
java.lang.Object
java.lang.Enum<ErrorType>
com.ibm.pdq.runtime.exception.ErrorType
- All Implemented Interfaces:
- Serializable, Comparable<ErrorType>
public enum ErrorType
extends Enum<ErrorType>
Categorizes the reasons for which exceptions are thrown.
- See Also:
DataRuntimeException.getErrorType()
Enum Constant Summary
Method Summary
static ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ErrorType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Enum Constant Detail
AUTHORIZATION_ERROR
public static final ErrorType AUTHORIZATION_ERROR
CARDINALITY_VIOLATION
public static final ErrorType CARDINALITY_VIOLATION
CONNECTION_ERROR
public static final ErrorType CONNECTION_ERROR
CONSTRAINT_VIOLATION
public static final ErrorType CONSTRAINT_VIOLATION
DUPLICATE_ROW_VIOLATION
public static final ErrorType DUPLICATE_ROW_VIOLATION
FEATURE_NOT_SUPPORTED
public static final ErrorType FEATURE_NOT_SUPPORTED
FUNCTION_ERROR
public static final ErrorType FUNCTION_ERROR
INVALID_CURSOR_STATE
public static final ErrorType INVALID_CURSOR_STATE
JDBC_DRIVER_ERROR
public static final ErrorType JDBC_DRIVER_ERROR
LIMIT_EXCEEDED
public static final ErrorType LIMIT_EXCEEDED
RESOURCE_UNAVAILABLE
public static final ErrorType RESOURCE_UNAVAILABLE
STATIC_PACKAGE_NOT_FOUND
public static final ErrorType STATIC_PACKAGE_NOT_FOUND
SYNTAX_ERROR
public static final ErrorType SYNTAX_ERROR
TIMEOUT_OR_DEADLOCK_NO_ROLLBACK
public static final ErrorType TIMEOUT_OR_DEADLOCK_NO_ROLLBACK
TIMEOUT_OR_DEADLOCK_WITH_ROLLBACK
public static final ErrorType TIMEOUT_OR_DEADLOCK_WITH_ROLLBACK
UNCATEGORIZED_ERROR
public static final ErrorType UNCATEGORIZED_ERROR
Method Detail
valueOf
public static ErrorType 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 name
values
public static final ErrorType[] values()
-
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ErrorType c : ErrorType.values())
System.out.println(c);
-
- Returns:
- an array containing the constants of this enum type, in the order they're declared