|
|||||||||||
| 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
|
+--uk.ac.ebi.intact.application.editor.exception.BaseException
This is the common superclass for all application.exception; This class and its subclasses support the chained exception facility.
| Constructor Summary | |
BaseException()
Default constructor. |
|
BaseException(java.lang.String msg)
Constructor with a message. |
|
BaseException(java.lang.Throwable cause)
Constructor that takes a root exception. |
|
| Method Summary | |
java.lang.String[] |
getMessageArgs()
Returns an array of arguments to pass to place holders application resources file. |
java.lang.String |
getMessageKey()
Returns the message key |
java.lang.Throwable |
getRootCause()
Return the root exception, if one exists. |
void |
printStackTrace()
Print both the normal and root stack traces to the std err. |
void |
printStackTrace(java.io.PrintStream out)
Print both the normal and root stack traces. |
void |
printStackTrace(java.io.PrintWriter writer)
Print both the normal and root stack traces. |
void |
setMessageArgs(java.lang.String[] args)
The arguments to pass to place holders in the application resources file. |
void |
setMessageKey(java.lang.String key)
Sets the message key. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BaseException()
public BaseException(java.lang.String msg)
msg - the message explaing the exception.public BaseException(java.lang.Throwable cause)
cause - the root exception.| Method Detail |
public void printStackTrace(java.io.PrintWriter writer)
printStackTrace in class java.lang.Throwablewriter - the writer to print the stack trace.public void printStackTrace(java.io.PrintStream out)
printStackTrace in class java.lang.Throwableout - the output stream.public void printStackTrace()
printStackTrace in class java.lang.Throwablepublic java.lang.Throwable getRootCause()
public void setMessageKey(java.lang.String key)
key - the key to search in the application resources file.public java.lang.String getMessageKey()
public void setMessageArgs(java.lang.String[] args)
args - an array of arguments to pass to place holders.public java.lang.String[] getMessageArgs()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||