org.apache.poi.util
Class DocumentFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.poi.util.DocumentFormatException
All Implemented Interfaces:
java.io.Serializable

public class DocumentFormatException
extends java.lang.RuntimeException

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:
Serialized Form

Constructor Summary
DocumentFormatException(java.lang.String exception)
           
DocumentFormatException(java.lang.String exception, java.lang.Throwable thr)
           
DocumentFormatException(java.lang.Throwable thr)
           
 
Method Summary
static void check(boolean assertTrue, java.lang.String message)
          Syntactic sugar to check whether a DocumentFormatException should be thrown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentFormatException

public DocumentFormatException(java.lang.String exception)

DocumentFormatException

public DocumentFormatException(java.lang.String exception,
                               java.lang.Throwable thr)

DocumentFormatException

public DocumentFormatException(java.lang.Throwable thr)
Method Detail

check

public static void check(boolean assertTrue,
                         java.lang.String message)
Syntactic sugar to check whether a DocumentFormatException should be thrown. If assertTrue is false, this will throw this exception with the message.

Parameters:
assertTrue -
message -