com.etymon.pjx
Class PdfException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.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

Field Summary
private  long _offset
          The position where the error was found, or -1 if no position information is available.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_offset

private long _offset
The position where the error was found, or -1 if no position information is available.

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.