Automated Exception Handling
Encyclopedia
Automated exception handling is a computing
Computing
Computing is usually defined as the activity of using and improving computer hardware and software. It is the computer-specific part of information technology...

 term referring to the computerized handling of errors. Runtime
Run-time system
A run-time system is a software component designed to support the execution of computer programs written in some computer language...

 engines such as those for the Java language or Microsoft .Net lend themselves to an automated mode of exception or error handling. In these environments software errors do not 'crash' the operating system or the runtime engine but rather generate exceptions. Recent advances in these runtime engines enables specialized runtime-engine add-on products to provide automated exception handling
Exception handling
Exception handling is a programming language construct or computer hardware mechanism designed to handle the occurrence of exceptions, special conditions that change the normal flow of program execution....

 that is independent of the source code and provides root-cause information for every exception of interest.

How it works

Upon exception, the runtime engine calls an error interception tool that is attached to the runtime engine (e.g. JVM). Based on the nature of the exception such as its type and the class and method in which it occurred and based on user preferences, an exception can be either handled or ignored.

If the preference is to handle the exception, then based on handling preferences such as memory search depth, the error interception utility extracts memory values from heap and stack memories. This snapshot then produces the equivalent of a debugger
Debugger
A debugger or debugging tool is a computer program that is used to test and debug other programs . The code to be examined might alternatively be running on an instruction set simulator , a technique that allows great power in its ability to halt when specific conditions are encountered but which...

screen (as if there had been a debugger) at the precise moment of the exception.

Advantages

This mechanism enables the automated handling of software errors independent of the source code of the application and independent of its developers. It is a direct artifact of the runtime engine paradigm and it enables unique advantages to the software lifecycle that were not available before.
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK