java.lang.Object
java.lang.Throwable
java.lang.Exception
org.miamm.soapmmil.MIAMMException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- NoRecepientException
- public class MIAMMException
- extends java.lang.Exception
- Version:
- $Revision: 1.12 $
$Date: 2003/03/22 16:46:51 $
| Nested classes inherited from class java.lang.Throwable |
|
| Fields inherited from class java.lang.Exception |
|
| Fields inherited from class java.lang.Throwable |
|
_embeddedException
java.lang.Exception _embeddedException
MIAMMException
public MIAMMException(java.lang.String type)
MIAMMException
private MIAMMException(java.lang.String type,
java.lang.Exception e)
- Note: don't use this unless you REALLY want to attach an
explanation of your own. This is because it also wraps
MIAMMExceptions
MIAMMException
private MIAMMException(java.lang.Exception e)
- private to force you to use the factory method
createMIAMMException
public static MIAMMException createMIAMMException(java.lang.Exception e)
- Factory method: if the exception is also a MIAMMException, we will
just return that; otherwise, we return a new MIAMMException
createMIAMMException
public static MIAMMException createMIAMMException(java.lang.String message,
java.lang.Exception e)
- Factory method: unlike the other factory method, we embed
MIAMMException since you seem so keen on attaching a message
to your exception
printEmbeddedStackTrace
public void printEmbeddedStackTrace(java.io.PrintWriter writer)
- Prints the stack trace and the stack trace, for the embedded
exception if there is one. If there isn't one, only print the
stack trace. If the embedded exception is also a
MIAMMException, recurses.
printStackTrace
public void printStackTrace(java.io.PrintWriter writer)
- Description copied from class:
java.lang.Throwable
- Prints the exception, the detailed message and the stack trace
associated with this Throwable to the given
PrintWriter.
The actual output written is implemention specific. Use the result of
getStackTrace() when more precise information is needed.
This implementation first prints a line with the result of this
object's toString() method.
Then for all elements given by getStackTrace it prints
a line containing three spaces, the string "at " and the result of calling
the toString() method on the StackTraceElement
object. If getStackTrace() returns an empty array it prints
a line containing three spaces and the string
"<<No stacktrace available>>".
Then if getCause() doesn't return null it adds a line
starting with "Caused by: " and the result of calling
toString() on the cause.
Then for every cause (of a cause, etc) the stacktrace is printed the
same as for the top level Throwable except that as soon
as all the remaining stack frames of the cause are the same as the
the last stack frames of the throwable that the cause is wrapped in
then a line starting with three spaces and the string "... X more" is
printed, where X is the number of remaining stackframes.