[
https://issues.apache.org/jira/browse/PDFBOX-5805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17890479#comment-17890479
]
Aleksandr Beliakov commented on PDFBOX-5805:
--------------------------------------------
Related to PDFBOX-5888
> Replace IOException on PDF parsing
> ----------------------------------
>
> Key: PDFBOX-5805
> URL: https://issues.apache.org/jira/browse/PDFBOX-5805
> Project: PDFBox
> Issue Type: Improvement
> Affects Versions: 2.0.31
> Reporter: Aleksandr Beliakov
> Priority: Major
>
> Classes like PDFParser, COSParser and other throw an IOException in case of
> an issue within PDF document structure. This makes it impossible to
> differentiate programmatically an IOException returned because of the file or
> InputStream reading issue (for instance a not accessible, corrupted input
> file/stream) against an exception returned because of an issue within PDF
> structure.
> Would it be possible to introduce a new exception class (for instance,
> PDFParserException) and throw that exception in case of parsing-related
> issues? A new class (optionally) may extend IOException in order to provide a
> smooth migration for the end-user.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]