Quote:
|
Originally Posted by MBirchmeier
Programatically handling an error can be easily done with an error handler without breaking modular code. (Generally something I consider a utility anyway) You call your error utility to notify where and what type of error occured, (and the severity,(silent, log, popup to the user, critical))the error handler knows how to handle the GUI, (potentally even waiting for user input) and you can continue on with execution as normal.
|
But what advantage does this have over exceptions? It seems like reinventing the wheel.
Whilst I can't think of any advantages to the above approach, I do think it suffers from three main disadvantages: it's nonstandard, doesn't support stack transversal, and lacks compile time checking in languages which have that.