public class EmbedSQLException extends java.sql.SQLException implements DerbySQLException
Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
arguments |
private java.lang.String |
messageId |
private boolean |
simpleWrapper |
Constructor and Description |
---|
EmbedSQLException(java.lang.String message,
java.lang.String messageId,
java.sql.SQLException nextException,
int severity,
java.lang.Throwable t,
java.lang.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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArguments() |
java.lang.String |
getMessageId() |
boolean |
isSimpleWrapper()
Returns true if this instance of DerbySQLException wraps
a StandardException object.
|
java.lang.String |
toString()
Override Throwables toString() to avoid the class name
appearing in the message.
|
static java.sql.SQLException |
wrapStandardException(java.lang.String message,
java.lang.String messageId,
int code,
java.lang.Throwable se) |
getErrorCode, getNextException, getSQLState, iterator, setNextException
private transient java.lang.Object[] arguments
private java.lang.String messageId
private transient boolean simpleWrapper
EmbedSQLException(java.lang.String message, java.lang.String messageId, java.sql.SQLException nextException, int severity, java.lang.Throwable t, java.lang.Object[] args)
public java.lang.String getMessageId()
public java.lang.Object[] getArguments()
public java.lang.String toString()
toString
in class java.lang.Throwable
public static java.sql.SQLException wrapStandardException(java.lang.String message, java.lang.String messageId, int code, java.lang.Throwable se)
public boolean isSimpleWrapper()
DerbySQLException
isSimpleWrapper
in interface DerbySQLException
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.