Top Description Constructors Methods
org.apache.poi.util

public Class RecordFormatException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
org.apache.poi.hssf.model.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.

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public static void
check(boolean
If false, the exception is thrown, if true, no action is performed
assertTrue
,
String
The message to include in the thrown exception
message
)

Syntactic sugar to check whether a RecordFormatException should be thrown.

Constructor Detail

RecordFormatExceptionback to summary
public RecordFormatException(String exception)
RecordFormatExceptionback to summary
public RecordFormatException(String exception, Throwable thr)
RecordFormatExceptionback to summary
public RecordFormatException(Throwable thr)

Method Detail

checkback to summary
public static void check(boolean assertTrue, String message)

Syntactic sugar to check whether a RecordFormatException should be thrown. If assertTrue is false, this will throw this exception with the message.

Parameters
assertTrue:boolean

If false, the exception is thrown, if true, no action is performed

message:String

The message to include in the thrown exception