joniles / rtfparserkit

Primary repository for RTF Parser Kit library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How will this library report content validation errors?

Miglecz opened this issue · comments

How will this library report content validation errors?
My problem is that if I try to parse any RTF file and I encounter an invalid one, then how will the lib notify me about the issue?

Depends on the problem, but most likely by throwing an exception.

كيف ستبلغ هذه المكتبة عن أخطاء التحقق من صحة المحتوى؟
مشكلتي هي أنه إذا حاولت تحليل أي ملف RTF وواجهت ملفًا غير صالح ، فكيف يخطرني المكتب القانوني بالمشكلة؟

How will this library report content validation errors?
My problem is that if I try to parse any RTF file and encounter an invalid file, how does the legal office notify me of the problem?

For the most part the library isn't validating the content of the RTF file. For example, if the file contains an unknown command e.g. \foobar currently this will be ignored. For some type of error, for example an invalid argument to a command (for example \ansicpg12520 where 12520 is not a known encoding) an exception will be thrown.