|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ExceptionFactory
An exception factory is used to create SQLExceptions of the correct type.
| 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 cause,
java.lang.Object[] args)
Construct an SQLException whose message and severity are specified explicitly. |
| Method Detail |
|---|
java.sql.SQLException getArgumentFerry(java.sql.SQLException se)
se - the exception to unpack
java.sql.SQLException getSQLException(java.lang.String message,
java.lang.String messageId,
java.sql.SQLException next,
int severity,
java.lang.Throwable cause,
java.lang.Object[] args)
message - the exception messagemessageId - the message idnext - the next SQLExceptionseverity - the severity of the exceptioncause - the cause of the exceptionargs - the message arguments
java.sql.SQLException getSQLException(java.lang.String messageId,
java.sql.SQLException next,
java.lang.Throwable cause,
java.lang.Object[] args)
messageId - the message idnext - the next SQLExceptioncause - the cause of the exceptionargs - the message arguments
|
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 | ||||||||