|
Version: 1.1.1 | |||||||||
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.biomoby.shared.MobyException
public class MobyException
A general exception which can be used as a wrapper around other exceptions. Using this exception simplifies the code (but on the other hand it makes it less "type-safe" - which is usually not a problem when dealing with exceptions).
Constructor Summary | |
---|---|
MobyException()
|
|
MobyException(String s)
A constructor specifying a reason for this exception. |
|
MobyException(String s,
Throwable e)
A constructor used for storing another exception in MobyException. |
Method Summary | |
---|---|
static void |
formatAndLog(Throwable e,
org.apache.commons.logging.Log log)
Format given exception 'e' depending on how serious it it. |
Throwable |
getOriginalException()
Deprecated. Use instead getCause() directly. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MobyException()
public MobyException(String s)
s
- message/reasonpublic MobyException(String s, Throwable e)
s
- message (or reason of)e
- original cause of this exceptionMethod Detail |
---|
public Throwable getOriginalException()
public static void formatAndLog(Throwable e, org.apache.commons.logging.Log log)
e
- an exception to be formatted and loggedlog
- where to log it
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |