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
public class DocumentFormatException extends RuntimeException
This is similar toRecordFormatException
, except this is thrown when there's a higher order problem with parsing a document beyond individual records.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentFormatException(String exception)
DocumentFormatException(String exception, Throwable thr)
DocumentFormatException(Throwable thr)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
check(boolean assertTrue, String message)
Syntactic sugar to check whether a DocumentFormatException should be thrown.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
check
public static void check(boolean assertTrue, String message)
Syntactic sugar to check whether a DocumentFormatException should be thrown. If assertTrue isfalse
, this will throw this exception with the message.
-
-