Package org.docx4j.org.apache.poi.hpsf
Class HPSFException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.docx4j.org.apache.poi.hpsf.HPSFException
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MarkUnsupportedException,NoPropertySetStreamException,UnexpectedPropertySetTypeException,VariantTypeException
public class HPSFException
extends java.lang.Exception
This exception is the superclass of all other checked exceptions thrown in this package. It supports a nested "reason" throwable, i.e. an exception that caused this one to be thrown.
- Author:
- Rainer Klute <klute@rainer-klute.de>
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description HPSFException()Creates anHPSFException.HPSFException(java.lang.String msg)Creates anHPSFExceptionwith a message string.HPSFException(java.lang.String msg, java.lang.Throwable reason)Creates anHPSFExceptionwith a message string and a reason.HPSFException(java.lang.Throwable reason)Creates a newHPSFExceptionwith a reason. -
Method Summary
Modifier and Type Method Description java.lang.ThrowablegetReason()Returns theThrowablethat caused this exception to be thrown ornullif there was no suchThrowable.
-
Constructor Details
-
HPSFException
public HPSFException()Creates an
HPSFException. -
HPSFException
public HPSFException(java.lang.String msg)Creates an
HPSFExceptionwith a message string.- Parameters:
msg- The message string.
-
HPSFException
public HPSFException(java.lang.Throwable reason)Creates a new
HPSFExceptionwith a reason.- Parameters:
reason- The reason, i.e. a throwable that indirectly caused this exception.
-
HPSFException
public HPSFException(java.lang.String msg, java.lang.Throwable reason)Creates an
HPSFExceptionwith a message string and a reason.- Parameters:
msg- The message string.reason- The reason, i.e. a throwable that indirectly caused this exception.
-
-
Method Details
-
getReason
public java.lang.Throwable getReason()Returns the
Throwablethat caused this exception to be thrown ornullif there was no suchThrowable.- Returns:
- The reason
-