net.walend.ejb
Class NestedCreateException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--javax.ejb.CreateException
|
+--net.walend.ejb.NestedCreateException
- All Implemented Interfaces:
- HasNestedThrowable, java.io.Serializable
- public class NestedCreateException
- extends javax.ejb.CreateException
- implements HasNestedThrowable
A CreateException that wraps another Throwable.
- Since:
- 20000906
- Author:
- David Walend
Field Summary |
private java.lang.Throwable |
nested
|
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
nested
private java.lang.Throwable nested
NestedCreateException
public NestedCreateException(java.lang.String message)
NestedCreateException
public NestedCreateException(java.lang.Throwable nestedThrowable)
NestedCreateException
public NestedCreateException(java.lang.String message,
java.lang.Throwable nestedThrowable)
getNestedThrowable
public java.lang.Throwable getNestedThrowable()
- Description copied from interface:
HasNestedThrowable
- Returns the nested Throwable, or null if there doesn't happent to be one.
- Specified by:
getNestedThrowable
in interface HasNestedThrowable
hasNestedThrowable
public boolean hasNestedThrowable()
- Specified by:
hasNestedThrowable
in interface HasNestedThrowable
getMessage
public java.lang.String getMessage()
- Returns this exception's message, followed by the nested Throwable's message, surrounded by []'s.
- Overrides:
getMessage
in class java.lang.Throwable
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintStream ps)
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintWriter pw)
- Overrides:
printStackTrace
in class java.lang.Throwable
printLimitedStackTrace
public void printLimitedStackTrace()
printLimitedStackTrace
public void printLimitedStackTrace(java.io.PrintStream ps)
- Description copied from interface:
HasNestedThrowable
- Print the stack trace of just this Throwable.
- Specified by:
printLimitedStackTrace
in interface HasNestedThrowable
printLimitedStackTrace
public void printLimitedStackTrace(java.io.PrintWriter pw)
- Description copied from interface:
HasNestedThrowable
- Print the stack trace of just this Throwable.
- Specified by:
printLimitedStackTrace
in interface HasNestedThrowable
Copyright (c) 2000, 2001, David Walend