|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.jdbc.SQLExceptionFactory
public class SQLExceptionFactory
Class to create SQLException
| Constructor Summary | |
|---|---|
SQLExceptionFactory()
|
|
| Method Summary | |
|---|---|
java.sql.SQLException |
getArgumentFerry(java.sql.SQLException se)
Unpack a SQL exception, looking for an EmbedSQLException which carries the Derby messageID and args which we will serialize across DRDA so that the client can reconstitute a SQLException with appropriate text. |
java.sql.SQLException |
getSQLException(java.lang.String messageId,
java.sql.SQLException next,
java.lang.Throwable cause,
java.lang.Object[] args)
Construct an SQLException whose message and severity are derived from the message id. |
java.sql.SQLException |
getSQLException(java.lang.String message,
java.lang.String messageId,
java.sql.SQLException next,
int severity,
java.lang.Throwable t,
java.lang.Object[] args)
method to construct SQLException version specific drivers can overload this method to create version specific exceptions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLExceptionFactory()
| Method Detail |
|---|
public java.sql.SQLException getSQLException(java.lang.String message,
java.lang.String messageId,
java.sql.SQLException next,
int severity,
java.lang.Throwable t,
java.lang.Object[] args)
getSQLException in interface ExceptionFactorymessage - the exception messagemessageId - the message idnext - the next SQLExceptionseverity - the severity of the exceptiont - the cause of the exceptionargs - the message arguments
public final java.sql.SQLException getSQLException(java.lang.String messageId,
java.sql.SQLException next,
java.lang.Throwable cause,
java.lang.Object[] args)
getSQLException in interface ExceptionFactorymessageId - the message idnext - the next SQLExceptioncause - the cause of the exceptionargs - the message arguments
public java.sql.SQLException getArgumentFerry(java.sql.SQLException se)
getArgumentFerry in interface ExceptionFactoryse - the exception to unpack
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||