Top Description Fields Constructors Methods
org.apache.derby.client.am

public Class SQLExceptionFactory

extends Object
Class Inheritance
Imports
org.apache.derby.shared.common.reference.SQLState, org.apache.derby.shared.common.error.ExceptionSeverity, .DerbySQLIntegrityConstraintViolationException, java.sql.SQLDataException, .SQLException, .SQLFeatureNotSupportedException, .SQLIntegrityConstraintViolationException, .SQLInvalidAuthorizationSpecException, .SQLNonTransientConnectionException, .SQLSyntaxErrorException, .SQLTimeoutException, .SQLTransactionRollbackException

SQLException factory class to create jdbc 40 exception classes

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public SQLException

Returns:

a SQLException with the indicated message
getSQLException
(String
description of the
message
,
String
the sqlstate
sqlState
,
int
derby error code
errCode
,
Object[]
the arguments to plug into the message text
args
)

creates jdbc4.0 SQLException and its subclass based on sql state

public static SQLFeatureNotSupportedException
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DRDA_COMMAND_NOT_SUPPORTEDback to summary
private static final String DRDA_COMMAND_NOT_SUPPORTED
DRDA_CONVERSATION_TERMINATEDback to summary
private static final String DRDA_CONVERSATION_TERMINATED
DRDA_CONVERSION_NOT_SUPPORTEDback to summary
private static final String DRDA_CONVERSION_NOT_SUPPORTED
DRDA_OBJECT_NOT_SUPPORTEDback to summary
private static final String DRDA_OBJECT_NOT_SUPPORTED
DRDA_PARAM_NOT_SUPPORTEDback to summary
private static final String DRDA_PARAM_NOT_SUPPORTED
DRDA_REPLY_MSG_NOT_SUPPORTEDback to summary
private static final String DRDA_REPLY_MSG_NOT_SUPPORTED
DRDA_SQLTYPE_NOT_SUPPORTEDback to summary
private static final String DRDA_SQLTYPE_NOT_SUPPORTED
DRDA_VALUE_NOT_SUPPORTEDback to summary
private static final String DRDA_VALUE_NOT_SUPPORTED

Constructor Detail

SQLExceptionFactoryback to summary
public SQLExceptionFactory()

Method Detail

getSQLExceptionback to summary
public SQLException getSQLException(String message, String sqlState, int errCode, Object[] args)

creates jdbc4.0 SQLException and its subclass based on sql state

Parameters
message:String

description of the

sqlState:String

the sqlstate

errCode:int

derby error code

args:Object[]

the arguments to plug into the message text

Returns:SQLException

a SQLException with the indicated message

notImplementedback to summary
public static SQLFeatureNotSupportedException notImplemented(String feature)