Patent ID: 7937624

Claim:
A method for handling an error in a script-based application, said method comprising: detecting an error in said script-based application, said detecting comprising collecting the error, identifying said error and where said collected error is a predefined system error, handling said collected error using an underlying system and if the error is a user defined error: updating a reusable error object with information associated with said error; accessing said reusable error object to determine an error code indicative of said error; and invoking a single script function for error-handling to handle said error in accordance with a predetermined error-handling procedure in response to the user defined error detected, the script function being provided with the information associated with said error from the reusable error object; whereby the script function has only read access to the reusable error object and other script functions of said script-based application have no access to the reusable error object.