Additional top-level classes in compilation unit: ColumnTypeConversionException, OutsideRangeForDataTypeException.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private String | |
| public static final String | |
| private static final int | |
| private int | |
| private static SQLExceptionFactory | exceptionFactory
SQLException factory is initialized with default factory. |
| private String | |
| private transient int | messageNumber_
Tells which of the messages in the SQLCA this exception refers to (counting from 0). |
| private static MessageUtil | msgutil_
The message utility instance we use to find messages It's primed with the name of the client message bundle so that it knows to look there if the message isn't found in the shared message bundle. |
| protected SqlException | |
| private transient Sqlca | |
| private String | |
| protected SQLException | wrappedException_
The wrapped SQLException, if one exists |
| Access | Constructor and Description |
|---|---|
| pack-priv | SqlException(LogWriter
Can be null, but if provided, it is used to log this exception logwriter, ClientMessageId The message id for this message. ClientMessageId is a simple type-safe
wrapper for org.apache.derby.shared.common.reference.SQLState message id
strings. msgid, Object[] The set of substitution arguments for the message. The Java message
formatter will substitute these arguments into the internationalized
strings using the substitution ({0}, {1}, etc.) markers in the string.
Any object can be passed, but if you want it to be readable, make sure
toString() for the object returns something useful. args, Throwable Can be null. Indicates the cause of this exception. If this is
an instance of SqlException or java.sql.SQLException then the exception
is chained into the nextException chain. Otherwise it is chained
using initCause(). cause)Create a SqlException. |
| pack-priv | SqlException(LogWriter logWriter, ClientMessageId msgid, Object[] args, SqlCode sqlcode, Throwable t)
|
| public | |
| public | |
| public | |
| public | SqlException(LogWriter
object used for tracing logWriter, Sqlca the SQLCA sent from the server sqlca)Create an exception for an engine generated error. |
| private | SqlException(Sqlca
the SQLCA sent from the server sqlca, int the message number for this exception (counting from 0) number, boolean if chain)true, generate the rest of the exception
chain recursively and link it to this exceptionCreate one of the exceptions in an exception chain generated by the engine. |
| private | |
| private | SqlException(LogWriter logWriter, Throwable throwable, String reason, String sqlState, int errorCode)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv SqlException | |
| private Object[] | |
| public int | |
| public String | getMessage()
Overrides java. |
| public static MessageUtil | Returns: a singleton instance of MessageUtil configured for client messagesThis routine provides singleton access to an instance of MessageUtil that is constructed for client messages. |
| public SqlException | |
| public Sqlca | |
| public SQLException | Returns: a corresponding SQLExceptionConvert this SqlException into a java.sql.SQLException |
| public String | |
| pack-priv static SqlException | javaException(LogWriter logWriter, Throwable e)
Helper method to construct an exception which basically says that we encountered an underlying Java exception |
| pack-priv void | |
| public void | |
| public void | |
| private void | |
| public String |
| batchPositionLabel_ | back to summary |
|---|---|
| private String batchPositionLabel_ | |
| cachedMessage_ | back to summary |
|---|---|
| private String cachedMessage_ | |
| causeString_ | back to summary |
|---|---|
| private String causeString_ | |
| CLIENT_MESSAGE_RESOURCE_NAME | back to summary |
|---|---|
| public static final String CLIENT_MESSAGE_RESOURCE_NAME | |
| DEFAULT_ERRCODE | back to summary |
|---|---|
| private static final int DEFAULT_ERRCODE | |
| errorcode_ | back to summary |
|---|---|
| private int errorcode_ | |
| exceptionFactory | back to summary |
|---|---|
| private static SQLExceptionFactory exceptionFactory SQLException factory is initialized with default factory. It will be over written by the SQLException factory of the supported JDBC version. | |
| message_ | back to summary |
|---|---|
| private String message_ | |
| messageNumber_ | back to summary |
|---|---|
| private transient int messageNumber_ Tells which of the messages in the SQLCA this exception refers to (counting from 0). For engine generated errors only. | |
| msgutil_ | back to summary |
|---|---|
| private static MessageUtil msgutil_ The message utility instance we use to find messages It's primed with the name of the client message bundle so that it knows to look there if the message isn't found in the shared message bundle. | |
| nextException_ | back to summary |
|---|---|
| protected SqlException nextException_ | |
| sqlca_ | back to summary |
|---|---|
| private transient Sqlca sqlca_ | |
| sqlstate_ | back to summary |
|---|---|
| private String sqlstate_ | |
| wrappedException_ | back to summary |
|---|---|
| protected SQLException wrappedException_ The wrapped SQLException, if one exists | |
| SqlException | back to summary |
|---|---|
| pack-priv SqlException(LogWriter logwriter, ClientMessageId msgid, Object[] args, Throwable cause) Create a SqlException. This constructor is the "base" constructor; all other constructors (which take a ClientMessageId) delegate to this constructor
| |
| SqlException | back to summary |
|---|---|
| pack-priv SqlException(LogWriter logWriter, ClientMessageId msgid, Object[] args, SqlCode sqlcode, Throwable t) | |
| SqlException | back to summary |
|---|---|
| public SqlException(LogWriter logWriter, ClientMessageId msgid, SqlCode sqlcode, Object... args) | |
| SqlException | back to summary |
|---|---|
| public SqlException(LogWriter logWriter, ClientMessageId msgid, Throwable cause, Object... args) | |
| SqlException | back to summary |
|---|---|
| public SqlException(LogWriter logwriter, ClientMessageId msgid, Object... args) | |
| SqlException | back to summary |
|---|---|
| public SqlException(LogWriter logWriter, Sqlca sqlca) Create an exception for an engine generated error. | |
| SqlException | back to summary |
|---|---|
| private SqlException(Sqlca sqlca, int number, boolean chain) Create one of the exceptions in an exception chain generated by the
engine. This constructor calls itself recursively to create the rest of
the exception chain if
| |
| SqlException | back to summary |
|---|---|
| private SqlException(LogWriter logWriter, String reason, String sqlState, int errorCode) | |
| SqlException | back to summary |
|---|---|
| private SqlException(LogWriter logWriter, Throwable throwable, String reason, String sqlState, int errorCode) | |
| SqlException | back to summary |
|---|---|
| public SqlException(SQLException wrapme) 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
| |
| copyAsUnchainedSQLException | back to summary |
|---|---|
| pack-priv SqlException copyAsUnchainedSQLException(LogWriter logWriter) | |
| getArgs | back to summary |
|---|---|
| private Object[] getArgs() | |
| getErrorCode | back to summary |
|---|---|
| public int getErrorCode() | |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Doc from java. Returns the detail message string of this throwable. | |
| getMessageUtil | back to summary |
|---|---|
| public static MessageUtil getMessageUtil() 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
| |
| getNextException | back to summary |
|---|---|
| public SqlException getNextException() | |
| getSqlca | back to summary |
|---|---|
| public Sqlca getSqlca() Implements org. | |
| getSQLException | back to summary |
|---|---|
| public SQLException getSQLException() Convert this SqlException into a java.sql.SQLException
| |
| getSQLState | back to summary |
|---|---|
| public String getSQLState() | |
| javaException | back to summary |
|---|---|
| pack-priv static SqlException javaException(LogWriter logWriter, Throwable e) Helper method to construct an exception which basically says that we encountered an underlying Java exception | |
| setBatchPositionLabel | back to summary |
|---|---|
| pack-priv void setBatchPositionLabel(int index) | |
| setNextException | back to summary |
|---|---|
| public void setNextException(SqlException nextException) | |
| setNextException | back to summary |
|---|---|
| public void setNextException(SQLException nextException) | |
| setThrowable | back to summary |
|---|---|
| private void setThrowable(Throwable throwable) Set the cause of this exception based on its type.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a short description of this throwable. The result is the concatenation of:
getLocalizedMessage returns null, then just
the class name is returned.
| |