PJX

com.etymon.pjx
Class PdfException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.etymon.pjx.PdfException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PdfDecoderException, PdfFormatException

public class PdfException
extends java.lang.Exception

The superclass of all exceptions within this package.

See Also:
Serialized Form

Constructor Summary
PdfException(java.lang.String s)
          Creates a PdfException with a detailed message.
PdfException(java.lang.String s, long offset)
          Creates a PdfException with a detailed message and offset.
 
Method Summary
 long getOffset()
          Returns the position where the error was found.
 
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

PdfException

public PdfException(java.lang.String s)
Creates a PdfException with a detailed message.

Parameters:
s - the detailed message.

PdfException

public PdfException(java.lang.String s,
                    long offset)
Creates a PdfException with a detailed message and offset. A detailed message is a String that describes this particular exception.

Parameters:
s - the detailed message.
offset - the position where the error is found.
Method Detail

getOffset

public long getOffset()
Returns the position where the error was found.

Returns:
the position where the error was found or -1 if no position information is available.

Copyright © 1998-2004 Etymon Systems, Inc.

The PDF data structures, operators, and specification are
Copyright © 1985-2004 Adobe Systems Incorporated.