Package org.apache.poi.util
Class DocumentFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.poi.util.DocumentFormatException
- All Implemented Interfaces:
Serializable
This is similar to
RecordFormatException
, except this is thrown
when there's a higher order problem with parsing a document beyond individual records.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentFormatException
(String exception) DocumentFormatException
(String exception, Throwable thr) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DocumentFormatException
-
DocumentFormatException
-
DocumentFormatException
-
-
Method Details
-
check
Syntactic sugar to check whether a DocumentFormatException should be thrown. If assertTrue isfalse
, this will throw this exception with the message.- Parameters:
assertTrue
-message
-
-