Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1367 |
|
While it is true that debuggers on systems with native exceptions will allow programmers to intercept exceptions, it is also true that programmers will occasionally have to try to recreate a problem only given an error message provided by the what() member function. To make it easy to figure out the originator of the exception, I propose that exceptions that originate from throw() but not Assert* should contain the name of the function to allow the programmer to discover where the error originated.
A format of:
"Class::member() - error message" "Class::member(args) - error message" // if overloading makes it ambiguous "::func() - error message" // global function "::func(args) - error message" // global overloaded functionShould generally be chosen under normal circumstances.
After some reflection, I have decided not to suggest that the function name be embedded in Assert statements -- we want to continue to make it easy for programmers to put in checks for ``impossible'' errors.