com.ibm.pdq.runtime.exception
Enum ErrorType

java.lang.Object
  extended by java.lang.Enum<ErrorType>
      extended by 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

Enum Constant and Description
AUTHORIZATION_ERROR
           
CARDINALITY_VIOLATION
           
CONNECTION_ERROR
           
CONSTRAINT_VIOLATION
           
DUPLICATE_ROW_VIOLATION
           
FEATURE_NOT_SUPPORTED
           
FUNCTION_ERROR
           
INVALID_CURSOR_STATE
           
JDBC_DRIVER_ERROR
           
LIMIT_EXCEEDED
           
RESOURCE_UNAVAILABLE
           
STATIC_PACKAGE_NOT_FOUND
           
SYNTAX_ERROR
           
TIMEOUT_OR_DEADLOCK_NO_ROLLBACK
           
TIMEOUT_OR_DEADLOCK_WITH_ROLLBACK
           
UNCATEGORIZED_ERROR
           

Method Summary

Modifier and Type Method and Description
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.

Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

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