com.deltaxml.odf
Class InvalidOdtFileException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.deltaxml.odf.OdfException
              extended by com.deltaxml.odf.OdtInputException
                  extended by com.deltaxml.odf.InvalidOdtFileException
All Implemented Interfaces:
Serializable

public class InvalidOdtFileException
extends OdtInputException

An exception indicating that a supplied file was not an ODT file as expected. The method that threw this exception expects an ODT file matching the description given below but the supplied file does not fit this description.

When an ODT file is expected as a parameter, it should match the following

See Also:
Serialized Form

Constructor Summary
InvalidOdtFileException(File file)
          Constructs a new InvalidOdtFileException with a default message.
InvalidOdtFileException(String message, File file)
          Constructs a new InvalidOdtFileException with a configurable message.
 
Method Summary
 
Methods inherited from class com.deltaxml.odf.OdtInputException
getFile
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidOdtFileException

public InvalidOdtFileException(File file)
Constructs a new InvalidOdtFileException with a default message.

Parameters:
file - the supplied File that is not an ODT file

InvalidOdtFileException

public InvalidOdtFileException(String message,
                               File file)
Constructs a new InvalidOdtFileException with a configurable message.

Parameters:
message - the exception message
file - the supplied File that is not an ODT file


© 2001-2009 DeltaXML Ltd. All Rights Reserved.