public abstract class NestedRuntimeException extends RuntimeException {
/** Root cause of this nested exception */
- private Throwable _underlyingException;
+ private Throwable underlyingException;
/**
* Construct a <code>NestedRuntimeException</code> with the specified detail message.
*/
public NestedRuntimeException(String msg, Throwable t) {
super(msg);
- _underlyingException = t;
+ underlyingException = t;
}
*/
public Throwable getUnderlyingException() {
- return _underlyingException;
+ return underlyingException;
}
*/
public String getMessage() {
- if (_underlyingException == null) {
+ if (underlyingException == null) {
return super.getMessage();
} else {
return super.getMessage()
+ "; nested exception is "
- + _underlyingException.getClass().getName();
+ + underlyingException.getClass().getName();
}
}
* @param ps the print stream
*/
public void printStackTrace(PrintStream ps) {
- if (_underlyingException == null) {
+ if (underlyingException == null) {
super.printStackTrace(ps);
} else {
ps.println(this);
- _underlyingException.printStackTrace(ps);
+ underlyingException.printStackTrace(ps);
}
}
* @param pw the print writer
*/
public void printStackTrace(PrintWriter pw) {
- if (_underlyingException == null) {
+ if (underlyingException == null) {
super.printStackTrace(pw);
} else {
pw.println(this);
- _underlyingException.printStackTrace(pw);
+ underlyingException.printStackTrace(pw);
}
}