|
||||||||||
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.jrdf.parser.StatementHandlerException
public class StatementHandlerException
An exception that can be thrown by a StatementHandler when it encounters an application specific error that should cause the parser to stop. If an exception is associated with the error then this exception can be stored in a StatementHandlerException and can later be retrieved from it when the StatementHandlerException is catched, e.g.:
try { parser.parse(myInputStream, myBaseURI); } catch (StatementHandlerException e) { Exception myException = e.getSource(); ... }
Constructor Summary | |
---|---|
StatementHandlerException(Exception newSource)
Creates a new StatementHandlerException wrapping another exception. |
|
StatementHandlerException(String msg)
Creates a new StatementHandlerException. |
|
StatementHandlerException(String msg,
Exception newSource)
Creates a new StatementHandlerException wrapping another exception. |
Method Summary | |
---|---|
Throwable |
getCause()
Overrides Throwable.getCause() (JDK 1.4 or later). |
Exception |
getSource()
Gets the source of this exception. |
void |
printStackTrace()
|
void |
printStackTrace(PrintStream ps)
|
void |
printStackTrace(PrintWriter pw)
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, 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 StatementHandlerException(String msg)
msg
- An error message.public StatementHandlerException(String msg, Exception newSource)
msg
- An error message.newSource
- The newSource exception.public StatementHandlerException(Exception newSource)
newSource
- The newSource exception.Method Detail |
---|
public Exception getSource()
public Throwable getCause()
getCause
in class Throwable
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream ps)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter pw)
printStackTrace
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |