| java.lang.Object java.lang.Throwable java.lang.Exception org.apache.derby.client.am.SqlException
All known Subclasses: org.apache.derby.client.am.SqlWarning, org.apache.derby.client.am.DisconnectException,
Constructor Summary | |
public | SqlException(LogWriter logwriter, ClientMessageId msgid, Object[] args, Throwable cause) Create a SqlException. | public | SqlException(LogWriter logWriter, ClientMessageId msgid, Object[] args, SqlCode sqlcode, Throwable t) | public | SqlException(LogWriter logWriter, ClientMessageId msgid, Object[] args, SqlCode sqlcode) | public | SqlException(LogWriter logWriter, ClientMessageId msgid, SqlCode sqlcode) | public | SqlException(LogWriter logWriter, ClientMessageId msgid, Object arg1, SqlCode sqlcode) | public | SqlException(LogWriter logWriter, ClientMessageId msgid, Object arg1, Object arg2, SqlCode sqlcode) | public | SqlException(LogWriter logwriter, ClientMessageId msgid, Throwable cause) | public | SqlException(LogWriter logwriter, ClientMessageId msgid, Object[] args) | public | SqlException(LogWriter logwriter, ClientMessageId msgid) | public | SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1) | public | SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1, Throwable cause) | public | SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1, Object arg2, Throwable cause) | public | SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1, Object arg2) | public | SqlException(LogWriter logwriter, ClientMessageId msgid, Object arg1, Object arg2, Object arg3) | public | SqlException(LogWriter logWriter, Sqlca sqlca) | protected | SqlException(LogWriter logWriter, String reason, String sqlState, int errorCode) | protected | SqlException(LogWriter logWriter, java.lang.Throwable throwable, String reason, String sqlState, int errorCode) | public | SqlException(SQLException wrapme) Wrap a SQLException in a SqlException. |
BATCH_POSITION_ID | final public static String BATCH_POSITION_ID(Code) | | |
CAUSED_BY_EXCEPTION_ID | final public static String CAUSED_BY_EXCEPTION_ID(Code) | | |
CLIENT_MESSAGE_RESOURCE_NAME | public static String CLIENT_MESSAGE_RESOURCE_NAME(Code) | | |
DEFAULT_ERRCODE | final protected static int DEFAULT_ERRCODE(Code) | | |
errorcode_ | protected int errorcode_(Code) | | |
wrappedException_ | protected SQLException wrappedException_(Code) | | The wrapped SQLException, if one exists
|
SqlException | public SqlException(LogWriter logwriter, ClientMessageId msgid, Object[] args, Throwable cause)(Code) | | Create a SqlException. This constructor is the "base" constructor;
all other constructors (which take a ClientMessageId) delegate to this
constructor
Parameters: logwriter - Can be null, but if provided, it is used to log this exception Parameters: msgid - The message id for this message. ClientMessageId is a simple type-safewrapper for org.apache.derby.shared.common.reference.SQLState message idstrings. Parameters: args - The set of substitution arguments for the message. The Java messageformatter will substitute these arguments into the internationalizedstrings using the substitution ({0}, {1}, etc.) markers in the string.Any object can be passed, but if you want it to be readable, make suretoString() for the object returns something useful. Parameters: cause - Can be null. Indicates the cause of this exception. If this isan instance of SqlException or java.sql.SQLException then the exceptionis chained into the nextException chain. Otherwise it is chainedusing initCause(). On JDK 1.3, since initCause() does not exist,a non-SQL exception can not be chained. Instead, the exception classand message text is appended to the message for this exception. |
SqlException | public SqlException(SQLException wrapme)(Code) | | Wrap a SQLException in a SqlException. This is used by internal routines
so the don't have to throw SQLException, which, through the chain of
dependencies would force more and more internal routines to throw
SQLException
|
getErrorCode | public int getErrorCode()(Code) | | |
getMessageUtil | public static MessageUtil getMessageUtil()(Code) | | This routine provides singleton access to an instance of MessageUtil
that is constructed for client messages. It is recommended to use
this singleton rather than create your own instance.
The only time you need this instance is if you need to directly
format an internationalized message string. In most instances this
is done for you when you invoke a SqlException constructor
a singleton instance of MessageUtil configured for clientmessages |
getSQLException | public SQLException getSQLException()(Code) | | Convert this SqlException into a java.sql.SQLException
|
javaException | public static SqlException javaException(LogWriter logWriter, Throwable e)(Code) | | Helper method to construct an exception which basically says that
we encountered an underlying Java exception
|
setBatchPositionLabel | void setBatchPositionLabel(int index)(Code) | | |
setExceptionFactory | public static void setExceptionFactory(SQLExceptionFactory factory)(Code) | | Sets the exceptionFactory to be used for creating SQLException
Parameters: factory - SQLExceptionFactory |
setNextException | public void setNextException(SQLException nextException)(Code) | | |
setThrowable | protected void setThrowable(Throwable throwable)(Code) | | Set the cause of this exception based on its type and
the current runtime version of Java
|
|
|