apoch / epoch-language

Home of the Epoch Programming Language Project
Other
72 stars 3 forks source link

Improve exceptions thrown by the compiler #123

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Many exceptions in the compiler are simply std::runtime_error and carry very 
little descriptive information. Improve this by throwing InternalException or 
some other descriptive type, providing at least passable messages, and 
documenting the causes and fixes for each exception in code comments.

See all code locations marked with the comment:

// TODO - better exceptions

Original issue reported on code.google.com by don.ap...@gmail.com on 15 Feb 2012 at 7:49

GoogleCodeExporter commented 9 years ago
These have all been cleaned up. Exceptions in general in the Epoch codebase 
could use some love, but this at least is taken care of.

Original comment by don.ap...@gmail.com on 15 Nov 2012 at 5:50