public class SQLExceptionFactory extends java.lang.Object implements ExceptionFactory
Constructor and Description |
---|
SQLExceptionFactory() |
Modifier and Type | Method and Description |
---|---|
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
|
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 ExceptionFactory
message
- the exception messagemessageId
- the message idnext
- the next SQLExceptionseverity
- the severity of the exceptiont
- the cause of the exceptionargs
- the message argumentspublic final java.sql.SQLException getSQLException(java.lang.String messageId, java.sql.SQLException next, java.lang.Throwable cause, java.lang.Object[] args)
getSQLException
in interface ExceptionFactory
messageId
- the message idnext
- the next SQLExceptioncause
- the cause of the exceptionargs
- the message argumentspublic java.sql.SQLException getArgumentFerry(java.sql.SQLException se)
getArgumentFerry
in interface ExceptionFactory
se
- the exception to unpackApache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.