Package org.apache.poi.util
Class RecordFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.poi.util.RecordFormatException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InternalSheet.UnsupportedBOFType
A common exception thrown by our binary format parsers
(especially HSSF and DDF), when they hit invalid
format or data when processing a record.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRecordFormatException
(String exception) RecordFormatException
(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
-
RecordFormatException
-
RecordFormatException
-
RecordFormatException
-
-
Method Details
-
check
Syntactic sugar to check whether a RecordFormatException should be thrown. If assertTrue isfalse
, this will throw this exception with the message.- Parameters:
assertTrue
- If false, the exception is thrown, if true, no action is performedmessage
- The message to include in the thrown exception
-