java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
java.sql.SQLWarning
org.apache.derby.impl.jdbc.EmbedSQLWarning
- All Implemented Interfaces:
- java.io.Serializable
- public class EmbedSQLWarning
- extends java.sql.SQLWarning
This class understands the message protocol and looks up
SQLExceptions based on keys, so that the Local JDBC driver's
messages can be localized.
REMIND: May want to investigate putting some of this in the protocol
side, for the errors that any Cloudscape JDBC driver might return.
The ASSERT mechanism is a wrapper of the basic services,
to ensure that failed asserts at this level will behave
well in a JDBC environment.
| Nested classes inherited from class java.lang.Throwable |
|
| Fields inherited from class java.lang.Throwable |
|
|
Constructor Summary |
protected |
EmbedSQLWarning(java.lang.String message,
java.lang.String sqlstate)
Because SQLWarning does not have settable fields,
the caller of the constructor must do message lookup,
and pass the appropriate values here for message and SQLState, |
EmbedSQLWarning
protected EmbedSQLWarning(java.lang.String message,
java.lang.String sqlstate)
- Because SQLWarning does not have settable fields,
the caller of the constructor must do message lookup,
and pass the appropriate values here for message and SQLState,
toString
public java.lang.String toString()
- Override Throwable's toString() to avoid the class name
appearing in the message.
newEmbedSQLWarning
public static java.sql.SQLWarning newEmbedSQLWarning(java.lang.String messageId)
newEmbedSQLWarning
public static java.sql.SQLWarning newEmbedSQLWarning(java.lang.String messageId,
java.lang.Object arg)
- This looks up the message and sqlstate values and generates
the appropriate exception off of them.
generateCsSQLWarning
public static java.sql.SQLWarning generateCsSQLWarning(org.apache.derby.iapi.error.StandardException se)
- Generate an SQL Warning from a Standard Exception