user195166
user195166

Reputation: 439

TIKA parsing feedback

Does a list exist of what types of feedback TIKA can provide about files it cannot parse? I'm trying to decide whether or not to provide end user feedback or feedback for an operations team or both based on what TIKA can tell me. For example if a MS Word document is password protected that is something I could pass back to the end user to take corrective action about.

Upvotes: 0

Views: 204

Answers (1)

Grooveek
Grooveek

Reputation: 10094

You should look for subclasses of TikaException like ChmParsingException, EncryptedDocumentException, MimeTypeException for Tika specific errors...

Signature of parse() method of formats parser is

Throws:
IOException - if the document stream could not be read
SAXException - if the SAX events could not be processed
TikaException - if the document could not be parsed

Upvotes: 1

Related Questions