Package org.apache.poi.hwpf
Class HWPFReadException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.poi.POIException
org.apache.poi.hwpf.HWPFReadException
- All Implemented Interfaces:
Serializable
An exception that indicates a problem reading a doc file. Usually, a more
specific exception will be wrapped as the cause.
This exception is only used by some new methods.
Historically, POI has used RuntimeException for most of its
exceptions, but this is not a good practice. This class is a checked
class that extends Exception so needs to be explicitly
caught or declared in the method signature.
- Since:
- 5.5.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHWPFReadException(String msg) Create a newHWPFReadExceptionwith theStringspecified as an error message.HWPFReadException(String msg, Throwable cause) Create a newHWPFReadExceptionwith theStringspecified as an error message and the cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HWPFReadException
Create a newHWPFReadExceptionwith theStringspecified as an error message.- Parameters:
msg- The error message for the exception.
-
HWPFReadException
Create a newHWPFReadExceptionwith theStringspecified as an error message and the cause.- Parameters:
msg- The error message for the exception.cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-