|
Regain 2.1.0-STABLE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.sf.regain.RegainException
public class RegainException
An exception for the lucene search.
It can handle nested exceptions. Nested exceptions will be printed with the stacktrace.
This class has the same code as
ExtendedJspException
.
The only difference is, that is inherits from Exception
.
Field Summary | |
---|---|
private Throwable |
mCause
The nested exception. |
(package private) static long |
serialVersionUID
|
Constructor Summary | |
---|---|
RegainException(String message)
Creates a new instance of SearchException. |
|
RegainException(String message,
Throwable cause)
Creates a new instance of SearchException. |
Method Summary | |
---|---|
Throwable |
getCause()
Gets the cause of this exception. |
void |
printStackTrace(PrintStream stream)
Prints the stack trace of this exception an of the nested exception, if present. |
void |
printStackTrace(PrintWriter writer)
Prints the stack trace of this exception an of the nested exception, if present. |
private boolean |
superClassPrintsCause()
Gets whether the superclass is able to print the cause of the exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
private Throwable mCause
Constructor Detail |
---|
public RegainException(String message)
message
- The error messagepublic RegainException(String message, Throwable cause)
message
- The error messagecause
- The nested exception.Method Detail |
---|
public Throwable getCause()
getCause
in class Throwable
public void printStackTrace(PrintStream stream)
printStackTrace
in class Throwable
stream
- The stream to print to.public void printStackTrace(PrintWriter writer)
printStackTrace
in class Throwable
writer
- The writer to print to.private boolean superClassPrintsCause()
|
Regain 2.1.0-STABLE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |