com.itextpdf.text.exceptions
Class InvalidPdfException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.itextpdf.text.exceptions.InvalidPdfException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UnsupportedPdfException

public class InvalidPdfException
extends IOException

Typed exception used when opening an existing PDF document. Gets thrown when the document isn't a valid PDF document.

Since:
2.1.5
See Also:
Serialized Form

Constructor Summary
InvalidPdfException(String message)
          Creates an instance with a message and no cause
InvalidPdfException(String message, Throwable cause)
          Creates an exception with a message and a cause
 
Method Summary
 Throwable getCause()
          This method is included (instead of using super(message, cause) in the constructors) to support backwards compatabilty with JDK 1.5, which did not have cause constructors for Throwable
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

InvalidPdfException

public InvalidPdfException(String message)
Creates an instance with a message and no cause

Parameters:
message - the reason why the document isn't a PDF document according to iText.

InvalidPdfException

public InvalidPdfException(String message,
                           Throwable cause)
Creates an exception with a message and a cause

Parameters:
message - the reason why the document isn't a PDF document according to iText.
cause - the cause of the exception, if any
Method Detail

getCause

public Throwable getCause()
This method is included (instead of using super(message, cause) in the constructors) to support backwards compatabilty with JDK 1.5, which did not have cause constructors for Throwable

Overrides:
getCause in class Throwable
Returns:
the cause of this exception


Copyright © 2013. All Rights Reserved.