| Constructor: |
public NestedSQLException(String msg) {
super(msg);
this.nested = null;
}
Construct a NestedSQLException with the specified detail
message. Parameters:
msg - Detail message.
|
public NestedSQLException(Throwable nested) {
this(nested.getMessage(), nested);
}
Construct a NestedSQLException with the specified
nested Throwable. Parameters:
nested - Nested Throwable.
|
public NestedSQLException(String msg,
Throwable nested) {
super(msg);
this.nested = nested;
NestedThrowable.Util.checkNested(this, nested);
}
Construct a NestedSQLException with the specified detail
message and nested Throwable. Parameters:
msg - Detail message.
nested - Nested Throwable.
|
public NestedSQLException(String msg,
String state) {
super(msg, state);
this.nested = null;
}
Construct a NestedSQLException. Parameters:
msg - Detail message.
state - SQL state message.
|
public NestedSQLException(String msg,
String state,
int code) {
super(msg, state, code);
this.nested = null;
}
Construct a NestedSQLException. Parameters:
msg - Detail message.
state - SQL state message.
code - SQL vendor code.
|
| Method from org.jboss.util.NestedSQLException Detail: |
public Throwable getCause() {
return nested;
}
|
public String getMessage() {
return NestedThrowable.Util.getMessage(super.getMessage(), nested);
}
Returns the composite throwable message. |
public Throwable getNested() {
return nested;
}
Return the nested Throwable. |
public void printStackTrace() {
printStackTrace(System.err);
}
Prints the composite message and the embedded stack trace to
System.err. |
public void printStackTrace(PrintStream stream) {
if (nested == null || NestedThrowable.PARENT_TRACE_ENABLED) {
super.printStackTrace(stream);
}
NestedThrowable.Util.print(nested, stream);
}
Prints the composite message and the embedded stack trace to the
specified print stream. |
public void printStackTrace(PrintWriter writer) {
if (nested == null || NestedThrowable.PARENT_TRACE_ENABLED) {
super.printStackTrace(writer);
}
NestedThrowable.Util.print(nested, writer);
}
Prints the composite message and the embedded stack trace to the
specified print writer. |