|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.martiansoftware.jsap.JSAPException
The base class for all of JSAP's exceptions. A JSAPException can encapsulate another Exception, which can be obtained via the getRootCause() method. This is useful in cases where subclasses might need to throw an exception that JSAP is not expecting, such as an IOException while loading a DefaultSource. The subclass can in these cases throw a new JSAPException encapsulating the IOException.
Flagged
,
Option
,
Serialized FormConstructor Summary | |
JSAPException()
Creates a new JSAPException. |
|
JSAPException(String msg)
Creates a new JSAPException with the specified message. |
|
JSAPException(String msg,
Throwable cause)
Creates a new JSAPException with the specified message encapsulating the specified Throwable. |
|
JSAPException(Throwable cause)
Creates a new JSAPException encapsulating the specified Throwable. |
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 JSAPException()
public JSAPException(String msg)
msg
- the message for this JSAPException.public JSAPException(Throwable cause)
cause
- the Throwable to encapsulate.public JSAPException(String msg, Throwable cause)
msg
- the message for this JSAPException.cause
- the Throwable to encapsulate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |