|
|||||||||
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.apache.poi.hssf.eventusermodel.HSSFUserException
public class HSSFUserException
This exception is provided as a way for API users to throw exceptions from their event handling code. By doing so they abort file processing by the HSSFEventFactory and by catching it from outside the HSSFEventFactory.processEvents method they can diagnose the cause for the abort.
The HSSFUserException supports a nested "reason" throwable, i.e. an exception that caused this one to be thrown.
The HSSF package does not itself throw any of these exceptions.
Constructor Summary | |
---|---|
HSSFUserException()
Creates a new HSSFUserException . |
|
HSSFUserException(java.lang.String msg)
Creates a new HSSFUserException with a message
string. |
|
HSSFUserException(java.lang.String msg,
java.lang.Throwable reason)
Creates a new HSSFUserException with a message string
and a reason. |
|
HSSFUserException(java.lang.Throwable reason)
Creates a new HSSFUserException with a reason. |
Method Summary | |
---|---|
java.lang.Throwable |
getReason()
Returns the Throwable that caused this exception to
be thrown or null if there was no such 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HSSFUserException()
Creates a new HSSFUserException
.
public HSSFUserException(java.lang.String msg)
Creates a new HSSFUserException
with a message
string.
msg
- the error messagepublic HSSFUserException(java.lang.Throwable reason)
Creates a new HSSFUserException
with a reason.
reason
- the causing exceptionpublic HSSFUserException(java.lang.String msg, java.lang.Throwable reason)
Creates a new HSSFUserException
with a message string
and a reason.
msg
- the error messagereason
- the causing exceptionMethod Detail |
---|
public java.lang.Throwable getReason()
Returns the Throwable
that caused this exception to
be thrown or null
if there was no such Throwable
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |