org.jdiagnose
Class StoredException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.jdiagnose.exception.NestableException
              extended byorg.jdiagnose.DiagnosticException
                  extended byorg.jdiagnose.StoredException
All Implemented Interfaces:
Nestable, java.io.Serializable

public class StoredException
extends DiagnosticException

Useful for creating exceptions out of DiagnosticMessages

Author:
jmccrindle
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jdiagnose.exception.NestableException
delegate
 
Constructor Summary
StoredException(java.lang.String message, java.lang.String body)
           
 
Method Summary
 java.lang.String getLocalizedMessage()
           
 java.lang.String getMessage()
          Returns the detail message string of this throwable.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream out)
          Prints the stack trace of this exception to the specified print stream.
 void printStackTrace(java.io.PrintWriter out)
          Prints the stack trace of this exception to the specified print writer.
 
Methods inherited from class org.jdiagnose.exception.NestableException
getCause, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StoredException

public StoredException(java.lang.String message,
                       java.lang.String body)
Parameters:
message - the exceptions message
body - the stacktrace
Method Detail

getMessage

public java.lang.String getMessage()
Description copied from class: NestableException
Returns the detail message string of this throwable. If it was created with a null message, returns the following: (cause==null ? null : cause.toString()).

Specified by:
getMessage in interface Nestable
Overrides:
getMessage in class NestableException
See Also:
Throwable.getMessage()

getLocalizedMessage

public java.lang.String getLocalizedMessage()
See Also:
Throwable.getLocalizedMessage()

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class NestableException
See Also:
Throwable.printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream out)
Description copied from interface: Nestable
Prints the stack trace of this exception to the specified print stream. Includes information from the exception, if any, which caused this exception.

Specified by:
printStackTrace in interface Nestable
Overrides:
printStackTrace in class NestableException
See Also:
Throwable.printStackTrace(java.io.PrintStream)

printStackTrace

public void printStackTrace(java.io.PrintWriter out)
Description copied from interface: Nestable
Prints the stack trace of this exception to the specified print writer. Includes information from the exception, if any, which caused this exception.

Specified by:
printStackTrace in interface Nestable
Overrides:
printStackTrace in class NestableException
See Also:
Throwable.printStackTrace(java.io.PrintWriter)


Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.