next up previous contents
Next: Intro to Object-Oriented Design Up: Exception Handling Previous: Exception Hierarchy   Contents

Advantages of Using Exception Handling

Exception handling provides the following advantages over ``traditional'' error management techniques:

separating Error Handling Code from ``regular'' one
provides a way to separate the details of what to do when something out-of-the-ordinary happens from the normal logical flow of the program code;
propagating Errors Up the Call Stack
lets the corrective action to be taken at a higher level. This allows the corrective action to be taken in the method that calling that one where an error occurs;
grouping Error Types and Error Differentiation
allows to create similar hierarchical structure for exception handling so groups they in logical way.



Olexiy Ye. Tykhomyrov 2001-12-16