Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How will this library report content validation errors? #21

Open
Miglecz opened this issue Feb 14, 2019 · 3 comments
Open

How will this library report content validation errors? #21

Miglecz opened this issue Feb 14, 2019 · 3 comments

Comments

@Miglecz
Copy link

Miglecz commented Feb 14, 2019

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?

@joniles
Copy link
Owner

joniles commented Feb 14, 2019

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

@minalabib223
Copy link

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

@joniles
Copy link
Owner

joniles commented Jan 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants