I'm writing a program to process BibTeX files to HTML code. The program allows a user selection which fields will be processed or how to format output HTML code.
BibTeX files are text databases. My program reads BibTeX files and writes to convenient object format, and use this objects to generate HTML. If there is any syntax error, my program catches it.
And my question is: should I write an exception (inherited from System.AplicationException), throw it and then catch it to "ErrorLog" which will be visible to a user?
Or maybe I should write "ErrorLog" without exceptions - only on my own non-standard error objects? Which solution will be more elegant and consistent with good practice in C# programing?