View Single Post
Old Jul 28th, 2006, 12:06 PM   #15
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
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.
Arevos is offline   Reply With Quote