Class PDFCosParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.adobe.internal.pdftoolkit.core.exceptions.PDFException
-
- com.adobe.internal.pdftoolkit.core.exceptions.PDFInvalidDocumentException
-
- com.adobe.internal.pdftoolkit.core.exceptions.PDFCosParseException
-
- All Implemented Interfaces:
Serializable
public class PDFCosParseException extends PDFInvalidDocumentException
This exception indicates a low level parsing problem at the Cos level has occurred. This should never be exposed to client level API. Only the Cos layer and any method which takes a Cos object should throw this. Other methods should wrap it as appropriate - often with PDFInvalidDocumentException.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PDFCosParseException.CosParseErrorType
This enum contains the possible errors which can occur while parsing PDf document.
-
Constructor Summary
Constructors Constructor Description PDFCosParseException(String message)
Create a new PDFCosParseException.PDFCosParseException(String message, Throwable cause)
Create a new PDFCosParseException wrapping an existing exception.PDFCosParseException(Throwable cause)
Create a new PDFCosParseException wrapping an existing exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addErrorType(PDFCosParseException.CosParseErrorType errorType)
boolean
hasErrorType(PDFCosParseException.CosParseErrorType type)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PDFCosParseException
public PDFCosParseException(String message)
Create a new PDFCosParseException.- Parameters:
message
- the detail message.
-
PDFCosParseException
public PDFCosParseException(String message, Throwable cause)
Create a new PDFCosParseException wrapping an existing exception.- Parameters:
message
- the detail message.cause
- the cause.
-
PDFCosParseException
public PDFCosParseException(Throwable cause)
Create a new PDFCosParseException wrapping an existing exception.- Parameters:
cause
- the cause.
-
-
Method Detail
-
hasErrorType
public boolean hasErrorType(PDFCosParseException.CosParseErrorType type)
-
addErrorType
public void addErrorType(PDFCosParseException.CosParseErrorType errorType)
-
-