markwatkinson / luminous

Accurate and powerful syntax highlighting library
http://luminous.asgaard.co.uk
GNU Lesser General Public License v2.1
51 stars 5 forks source link

Exception safety #5

Open markwatkinson opened 13 years ago

markwatkinson commented 13 years ago

Luminous needs proper exception safety in production settings. Many exceptions are thrown for debugging purposes (for the stack trace), but in many of these cases there is probably a sensible recovery option also available.

markwatkinson commented 13 years ago

The user API now catches any exceptions that have bubbled up to it, and returns the input, so at least the exception won't kill the page. A few internal exceptions now have better handling and recovery in non-debug code, but there are still probably some left. edit: I didn't mean to close that.