/** If this exception is wrapped around another it is stored here. */
private Throwable _wrapee;
/**
* Default ctor. Creates an exception with an empty string ("")
* as its message.
*/
public [[#variable18d64d80]]() {
this("");
}
/**
* Ctor specifying the message.
*
* @param msg The message.
*/
public [[#variable18d64d80]](String msg) {
super(msg != null ? msg: "");
}
/**
* Ctor specifying an exception that this one should
* be wrapped around.
*
* @param wrapee The wrapped exception.
*/
public [[#variable18d64d80]](Throwable wrapee) {
super( [[#variable18d63a80]]);
_wrapee = wrapee;
}
public String toString() {
if (_wrapee != null) {
return _wrapee.toString();
}
return super.toString();
}
public void printStackTrace() {
if (_wrapee != null) {
_wrapee.printStackTrace();
}
else {
super.printStackTrace();
}
}
public void printStackTrace(PrintStream s) {
if (_wrapee != null) {
_wrapee.printStackTrace(s);
}
else {
super.printStackTrace(s);
}
}
public void printStackTrace(PrintWriter wtr) {
if (_wrapee != null) {
_wrapee.printStackTrace(wtr);
}
else {
super.printStackTrace(wtr);
}
}
|