Method to route errors to devices based on the Device Availability and Error Code.
Original Publication Date: 2008-Feb-26
Included in the Prior Art Database: 2008-Feb-26
Disclosed is a method to have a specialized error handler for an application which intercepts errors (or exceptions in Java*) and routes them to the appropriate output device based on the nature of the error and as well as the availability of the output device.
Method to route errors to devices based on the Device Availability and Error Code .
Typically, applications configure their errors to go to specific devices e.g. disk, tapes, printers, sound cards, LEDS. But these are hardcoded values in the applications.
Disclosed is a method for an application to have a special error handler which routes errors to the appropriate device based on a combination of the nature of the error and the devices available. For instance, if the error is: "No space on Disk", it does not make sense to route this message to a log file on the Disk. Instead, the error could be routed to the LED (flashing light corresponding to the error), sound card (beeps/an automated voice reading the error), and/or to the printer. Similarly, for applications which output error messages on the display, if the display is not available/down, the message can be routed to other devices which the user has access to. The system can also be configured to take alternate mechanisms to "display" the error, if the window in which the application is running is not visible. In such a case, the system can turn on audible notification in addition to visually displaying the error on the screen. This audible notification can be turned off when the screen is "visible" (on top).
1. Set Configuration Parameters for the list of output devices along with r...