|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.openrdf.rio.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 source)
Creates a new StatementHandlerException wrapping another exception. |
|
StatementHandlerException(String msg)
Creates a new StatementHandlerException. |
|
StatementHandlerException(String msg,
Exception source)
Creates a new StatementHandlerException wrapping another exception. |
|
| Method Summary | |
Exception |
getSource()
Gets the source of this exception. |
| 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 StatementHandlerException(String msg)
msg - An error message.
public StatementHandlerException(String msg,
Exception source)
msg - An error message.source - The source exception.public StatementHandlerException(Exception source)
source - The source exception.| Method Detail |
public Exception getSource()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||