rtfparserkit icon indicating copy to clipboard operation
rtfparserkit copied to clipboard

How will this library report content validation errors?

Open Miglecz opened this issue 6 years ago • 3 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?

Miglecz avatar Feb 14 '19 11:02 Miglecz

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

joniles avatar Feb 14 '19 15:02 joniles

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

minalabib223 avatar Jan 16 '22 22:01 minalabib223

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.

joniles avatar Jan 17 '22 11:01 joniles