edu.harvard.hul.ois.jhove.module.pdf
Class PdfInvalidException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.harvard.hul.ois.jhove.module.pdf.PdfException
              extended by edu.harvard.hul.ois.jhove.module.pdf.PdfInvalidException
All Implemented Interfaces:
java.io.Serializable

public final class PdfInvalidException
extends PdfException

Exception subclass used internally by the PDF module. A PdfInvalidException is thrown when a condition indicates that the document is invalid but not necessarily ill-formed.

See Also:
Serialized Form

Constructor Summary
PdfInvalidException(java.lang.String m)
          Creates a PdfInvalidException.
PdfInvalidException(java.lang.String m, long offset)
          Creates a PdfInvalidException with specified offset.
PdfInvalidException(java.lang.String m, long offset, Token token)
          Creates a PdfInvalidException with specified offset and token.
 
Method Summary
 void disparage(RepInfo info)
          Performs the appropriate disparagement act on a RepInfo object.
 
Methods inherited from class edu.harvard.hul.ois.jhove.module.pdf.PdfException
getOffset, getToken
 
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

PdfInvalidException

public PdfInvalidException(java.lang.String m)
Creates a PdfInvalidException.


PdfInvalidException

public PdfInvalidException(java.lang.String m,
                           long offset)
Creates a PdfInvalidException with specified offset.


PdfInvalidException

public PdfInvalidException(java.lang.String m,
                           long offset,
                           Token token)
Creates a PdfInvalidException with specified offset and token.

Method Detail

disparage

public void disparage(RepInfo info)
Performs the appropriate disparagement act on a RepInfo object. For a PdfInvalidException, this is to call setValid (false).

Specified by:
disparage in class PdfException