|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.cafesoft.core.exception.NestedException
Allows for exceptions which extend this class to chain nested exceptions. Extension to the Exception class found in Java.
This class was model heavily from the Throwable implementation found in the JDK 1.4 release. It was done such that we can immediately support JDK 1.4 when Cafesoft decides to do so.
| Constructor Summary | |
NestedException()
Create an exception with no additional information |
|
NestedException(String message)
Create an exception with a detailed message |
|
NestedException(String message,
Throwable cause)
Create an exception with both a detailed message and a nested exception |
|
NestedException(Throwable cause)
Create an exception with a nested exception |
|
| Method Summary | |
Throwable |
getCause()
Returns the cause of this throwable or null if the
cause is nonexistent or unknown. |
String |
getLocalizedMessage()
Creates a localized description of this throwable. |
String |
getMessage()
Returns the detail message string of this Exception. |
void |
printStackTrace()
Prints this throwable and its backtrace to the standard error stream. |
void |
printStackTrace(PrintStream s)
Prints this throwable and its backtrace to the specified print stream. |
void |
printStackTrace(PrintWriter s)
Prints this throwable and its backtrace to the specified print writer. |
String |
toString()
Returns a short description of this throwable. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NestedException()
public NestedException(String message)
message - a detailed messagepublic NestedException(Throwable cause)
cause - a nested Throwable object
public NestedException(String message,
Throwable cause)
message - a detailed messagecause - a nested Throwable object| Method Detail |
public Throwable getCause()
null if the
cause is nonexistent or unknown. (The cause is the throwable that
caused this throwable to get thrown.)
getCause in class Throwablenull if the
cause is nonexistent or unknown.public String getLocalizedMessage()
getMessage().
getLocalizedMessage in class Throwablepublic String getMessage()
getMessage in class Throwablepublic void printStackTrace()
Throwable object on the error output stream that is
the value of the field System.err.
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter s)
printStackTrace in class Throwables - PrintWriter to use for outputpublic void printStackTrace(PrintStream s)
printStackTrace in class Throwables - PrintStream to use for outputpublic String toString()
toString in class Throwable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||