|
||||||||||
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 | +--org.koala.koalautil.ChainedException
provides many useful ways to raise exceptions with different sets of information
Constructor Summary | |
ChainedException()
Default constructor |
|
ChainedException(java.lang.Object className,
java.lang.String description,
java.lang.String method)
Creates a new ChainedException with some additional information on the context of the exception |
|
ChainedException(java.lang.Object className,
java.lang.String description,
java.lang.String method,
java.lang.Throwable cause)
Creates a new ChainedException with some additional information on the context of the exception |
|
ChainedException(java.lang.String msg)
Creates new ChainedException with a given message |
|
ChainedException(java.lang.String className,
java.lang.String description,
java.lang.String method)
Creates a new ChainedException with some additional information on the context of the exception |
|
ChainedException(java.lang.String className,
java.lang.String description,
java.lang.String method,
java.lang.Throwable cause)
Creates a new ChainedException with some additional information on the context of the exception |
|
ChainedException(java.lang.String msg,
java.lang.Throwable cause)
Creates a new ChainedException providing a message and a cause |
Method Summary | |
java.lang.String |
getClassName()
returns the name of the class which raised the exception |
java.lang.String |
getMessage()
returns the exception's message |
java.lang.String |
getMethod()
returns the name of the method which raised the exception |
java.lang.String |
getStackTraceAsString()
returns the exception's stack trace in a String |
void |
printStackTrace()
prints the stack trace with some additional formatting |
void |
printStackTrace(java.io.PrintStream ps)
prints the stack trace with some additional formatting to a given stream |
void |
printStackTrace(java.io.PrintWriter pw)
prints the stack trace with some additional formatting using a writer |
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 |
Constructor Detail |
public ChainedException()
public ChainedException(java.lang.String msg)
msg
- the message to include in the raised exceptionpublic ChainedException(java.lang.String msg, java.lang.Throwable cause)
msg
- the message to include in the exceptioncause
- the cause of the exceptionpublic ChainedException(java.lang.String className, java.lang.String description, java.lang.String method)
className
- the name of the class which raised the exceptiondescription
- the description of the exceptionmethod
- the name of the method which raise the exceptionpublic ChainedException(java.lang.String className, java.lang.String description, java.lang.String method, java.lang.Throwable cause)
className
- the name of the class which raised the exceptiondescription
- the description of the exceptionmethod
- the name of the method which raised the exceptioncause
- the cause of the exceptionpublic ChainedException(java.lang.Object className, java.lang.String description, java.lang.String method)
className
- the object from which to obtain the name of the class which raised the exceptiondescription
- the description of the exceptionmethod
- the name of the method which raised the exceptionpublic ChainedException(java.lang.Object className, java.lang.String description, java.lang.String method, java.lang.Throwable cause)
className
- the object from which to obtain the name of the class which raised the exceptiondescription
- the exception's descriptionmethod
- the name of the method which raised the exceptioncause
- the exception's causeMethod Detail |
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getClassName()
public java.lang.String getMethod()
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream ps)
printStackTrace
in class java.lang.Throwable
ps
- the stream to print the stack trace topublic void printStackTrace(java.io.PrintWriter pw)
printStackTrace
in class java.lang.Throwable
pw
- the writer to usepublic java.lang.String getStackTraceAsString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |