|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--lime.LimeException
The superclass of all exceptions raised by this package. Instances of
this class are also used to wrap lower-level exceptions (called
internal exceptions) generated by the implementation, e.g.,
IOExceptionException
or ClassNotFoundException
.
Constructor Summary | |
LimeException()
Creates a new exception with no internal, lower-level exception. |
|
LimeException(java.lang.Exception internal)
Creates an exception that wraps an internal exception. |
|
LimeException(java.lang.Exception internal,
java.lang.String s)
Creates an exception that wraps an internal exception. |
|
LimeException(java.lang.String s)
Creates a new exception with no internal, lower-level exception. |
Method Summary | |
java.lang.Exception |
getInternal()
Returns the internal exception associated with this object. |
boolean |
hasInternal()
Tests whether this exception contains an internal exception. |
void |
printStackTrace()
Prints this exception and its backtrace to the standard error stream. |
void |
printStackTrace(java.io.PrintStream s)
Prints this exception and its backtrace to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints this exception and its backtrace to the specified print writer. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LimeException(java.lang.Exception internal)
internal
- the internal exception.public LimeException()
public LimeException(java.lang.String s)
s
- an explanatory message for the exception.public LimeException(java.lang.Exception internal, java.lang.String s)
internal
- the internal exception.s
- an explanatory message for the exception.Method Detail |
public boolean hasInternal()
true
if this exception contains an internal one,
false
otherwise.public java.lang.Exception getInternal()
null
if there is none.public java.lang.String toString()
toString
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |