com.deltaxml.odf
Class OdtInputException

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
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidOdtFileException

public class OdtInputException
extends OdfException

An exception indicating that there is a problem with a supplied input file. The Throwable returned by the Throwable.getCause() method may give more details of what is wrong.

See Also:
Serialized Form

Constructor Summary
OdtInputException(String message, File input)
          Constructs a new OdtInputException with a configurable message
OdtInputException(String message, File input, Throwable cause)
          Constructs a new OdtInputException with a configurable message and an underlying cause
 
Method Summary
 File getFile()
          Returns the File that caused the exception
 
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

OdtInputException

public OdtInputException(String message,
                         File input)
Constructs a new OdtInputException with a configurable message

Parameters:
message - the exception message
input - the input File that caused the problem

OdtInputException

public OdtInputException(String message,
                         File input,
                         Throwable cause)
Constructs a new OdtInputException with a configurable message and an underlying cause

Parameters:
message - the exception message
input - the input File that caused the problem
cause - the underlying cause of the exception
Method Detail

getFile

public File getFile()
Returns the File that caused the exception

Returns:
the input File that caused the exception


© 2001-2009 DeltaXML Ltd. All Rights Reserved.