| java.lang.Object java.lang.Throwable java.lang.Exception java.sql.SQLException org.apache.derby.impl.jdbc.EmbedSQLException
EmbedSQLException | public class EmbedSQLException extends SQLException (Code) | | This class is what gets send over the wire in client/server
configuration. When running embedded, this has the detailed
stack trace for exceptions. In case of client/server, server
has all the stack trace information but client doesn't get
the stack trace, just the sql exception. The reason for this
implementation is the stack trace information is more relevant
on the server side and it also decreases the size of client
jar file tremendously.
|
Constructor Summary | |
| EmbedSQLException(String message, String messageId, SQLException nextException, int severity, Object[] args) Because SQLException does not have settable fields,
the caller of the constructor must do message lookup,
and pass the appropriate values here for message, messageId,
and next exception. | public | EmbedSQLException(String message, String messageId, SQLException nextException, int severity, Throwable t, Object[] args) |
EmbedSQLException | EmbedSQLException(String message, String messageId, SQLException nextException, int severity, Object[] args)(Code) | | Because SQLException does not have settable fields,
the caller of the constructor must do message lookup,
and pass the appropriate values here for message, messageId,
and next exception.
|
isSimpleWrapper | public boolean isSimpleWrapper()(Code) | | |
printStackTrace | public void printStackTrace()(Code) | | Print the stack trace of the wrapped java exception or this
exception if there is none.
See Also: Throwable.printStackTrace |
toString | public String toString()(Code) | | Override Throwables toString() to avoid the class name
appearing in the message.
|
|
|