Class RecordFormatException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InternalSheet.UnsupportedBOFType

public class RecordFormatException extends RuntimeException
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 Details

    • RecordFormatException

      public RecordFormatException(String exception)
    • RecordFormatException

      public RecordFormatException(String exception, Throwable thr)
    • RecordFormatException

      public RecordFormatException(Throwable thr)
  • Method Details

    • check

      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 - If false, the exception is thrown, if true, no action is performed
      message - The message to include in the thrown exception