Method and apparatus to perform customized error handling
View Patent ↗A method and apparatus to perform customized error handling is described. For example, this method makes it possible to intercept and replace an error code generated by an application. Error messages, such as third party error messages, can be replaced. The application which generates the error message may or may not be updated. The files used by that application may or may not be updated.
1. A method stored in a computer readable medium to perform customized error handling, comprising:
analyzing an application program prior to execution;
in response to the analyzing of the application program, detecting a sub-sequence of the application program that, when executed, will cause a first error message to be displayed; and
prior to execution of the application program, overwriting the sub-sequence of the application program with new instructions that, when executed, will cause a second error message to be displayed.
2. The method stored in a computer readable medium of claim 1 , wherein detecting a sub-sequence of the application program that, when executed, will cause a first error message to be displayed further comprises executing the sub-sequence of the application program.
3. The method stored in a computer readable medium of claim 2 , wherein detecting a sub-sequence of the application program that, when executed, will cause a first error message to be displayed further comprises examining the outcome of executing the sub-sequence of the application program.
4. The method stored in a computer readable medium of claim 1 , wherein detecting a sub-sequence of the application program that, when executed, will cause a first error message to be displayed further comprises searching for the presence of any files that may be requested by the sub-sequence of the application program and determining if the files are present.