| 
||||||||||
| 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 exception
public ChainedException(java.lang.String msg,
                        java.lang.Throwable cause)
msg - the message to include in the exceptioncause - the cause of the exception
public 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 exception
public 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 exception
public 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 exception
public 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 cause| Method Detail | 
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getClassName()
public java.lang.String getMethod()
public void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream ps)
printStackTrace in class java.lang.Throwableps - the stream to print the stack trace topublic void printStackTrace(java.io.PrintWriter pw)
printStackTrace in class java.lang.Throwablepw - the writer to usepublic java.lang.String getStackTraceAsString()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||