public class XWPFReadException extends POIException
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.
| Constructor and Description |
|---|
XWPFReadException(String msg)
Create a new
XWPFReadException with
the String specified as an error message. |
XWPFReadException(String msg,
Throwable cause)
Create a new
XWPFReadException with
the String specified as an error message and the cause. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic XWPFReadException(String msg)
XWPFReadException with
the String specified as an error message.msg - The error message for the exception.public XWPFReadException(String msg, Throwable cause)
XWPFReadException with
the String specified as an error message and the cause.msg - The error message for the exception.cause - the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)