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:
java.io.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(java.lang.String message)
Create a new PDFCosParseException.PDFCosParseException(java.lang.String message, java.lang.Throwable cause)
Create a new PDFCosParseException wrapping an existing exception.PDFCosParseException(java.lang.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)
-
-
-
Constructor Detail
-
PDFCosParseException
public PDFCosParseException(java.lang.String message)
Create a new PDFCosParseException.- Parameters:
message
- the detail message.
-
PDFCosParseException
public PDFCosParseException(java.lang.String message, java.lang.Throwable cause)
Create a new PDFCosParseException wrapping an existing exception.- Parameters:
message
- the detail message.cause
- the cause.
-
PDFCosParseException
public PDFCosParseException(java.lang.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)
-
-