Package org.apache.poi.hpsf
Class HPSFRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.poi.hpsf.HPSFRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
IllegalPropertySetDataException
,MissingSectionException
,NoFormatIDException
,NoSingleSectionException
public class HPSFRuntimeException extends java.lang.RuntimeException
This exception is the superclass of all other unchecked exceptions thrown in this package. It supports a nested "reason" throwable, i.e. an exception that caused this one to be thrown.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HPSFRuntimeException()
Creates a newHPSFRuntimeException
.HPSFRuntimeException(java.lang.String msg)
Creates a newHPSFRuntimeException
with a message string.HPSFRuntimeException(java.lang.String msg, java.lang.Throwable reason)
Creates a newHPSFRuntimeException
with a message string and a reason.HPSFRuntimeException(java.lang.Throwable reason)
Creates a newHPSFRuntimeException
with a reason.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getReason()
Returns theThrowable
that caused this exception to be thrown ornull
if there was no suchThrowable
.
-
-
-
Constructor Detail
-
HPSFRuntimeException
public HPSFRuntimeException()
Creates a new
HPSFRuntimeException
.
-
HPSFRuntimeException
public HPSFRuntimeException(java.lang.String msg)
Creates a new
HPSFRuntimeException
with a message string.- Parameters:
msg
- The message string.
-
HPSFRuntimeException
public HPSFRuntimeException(java.lang.Throwable reason)
Creates a new
HPSFRuntimeException
with a reason.- Parameters:
reason
- The reason, i.e. a throwable that indirectly caused this exception.
-
HPSFRuntimeException
public HPSFRuntimeException(java.lang.String msg, java.lang.Throwable reason)
Creates a new
HPSFRuntimeException
with a message string and a reason.- Parameters:
msg
- The message string.reason
- The reason, i.e. a throwable that indirectly caused this exception.
-
-