|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
edu.harvard.hul.ois.jhove.module.pdf.PdfException
public abstract class PdfException
Abstract exception subclass used internally by the PDF module. Throwing a PDFException indicates that the document is ill-formed or invalid; use the appropriate subclass to indicate which.
Constructor Summary | |
---|---|
PdfException(java.lang.String m)
Create a PdfException. |
|
PdfException(java.lang.String m,
long offset)
Create a PdfException with specified offset. |
|
PdfException(java.lang.String m,
long offset,
Token token)
Create a PdfException with specified offset and token. |
Method Summary | |
---|---|
abstract void |
disparage(RepInfo info)
Performs the appropriate disparagement act on a RepInfo object, such as setting the valid or well-formed flag to false . |
long |
getOffset()
Returns the offset at which the exception occurred. |
Token |
getToken()
Return the token associated with 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PdfException(java.lang.String m)
public PdfException(java.lang.String m, long offset)
public PdfException(java.lang.String m, long offset, Token token)
Method Detail |
---|
public long getOffset()
public Token getToken()
public abstract void disparage(RepInfo info)
false
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |