Method, system and program for handling errors occurring in function calls
First Claim
1. A method for handling errors in a service program including service functions capable of being called from application programs, comprising:
- receiving a call for one service function from a service function call within one application program;
performing a series of test operations when executing the service function call, wherein each test operation returns an identifier if the test operation failed, wherein each identifier is associated with one error state; and
if one test operation failed, transmitting the identifier associated with the error state of the failed test operation to an error handling agent, wherein the error handling agent accesses error information associated with the identifier and generates error information describing a specific cause of the error that caused the test operation to fail.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided is a method, system, and program for handling errors in a service program including service functions capable of being called from application programs. A call is received for one service function from a service function call within one application program. A series of test operations are performed when executing the service function call. Each test operation returns an identifier if the test operation failed where each identifier is associated with one error state. If one test operation failed, then the identifier for the failed test operation is transferred to an error handling agent, wherein the error handling agent accesses error information associated with the identifier and generates error information describing a specific cause of the error that caused the test operation to fail and then returns to the application program with a generic return code.
52 Citations
54 Claims
-
1. A method for handling errors in a service program including service functions capable of being called from application programs, comprising:
-
receiving a call for one service function from a service function call within one application program;
performing a series of test operations when executing the service function call, wherein each test operation returns an identifier if the test operation failed, wherein each identifier is associated with one error state; and
if one test operation failed, transmitting the identifier associated with the error state of the failed test operation to an error handling agent, wherein the error handling agent accesses error information associated with the identifier and generates error information describing a specific cause of the error that caused the test operation to fail. - View Dependent Claims (2, 3, 4)
-
-
5. A method for handling errors resulting from execution of a service function in a service program, wherein one application program calls the service function in the service program, comprising:
-
receiving an identifier from the service program executing the service function, wherein the service program performs a series of test operations when executing the service function, wherein each test operation returns one identifier if the test operation failed that is associated with one error state;
if the received identifier indicates that one error occurred during execution of the service function, then generating and transmitting a return code to the application program indicating that an error occurred. - View Dependent Claims (6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A system for handling errors resulting from execution of a service function in a service program, comprising:
-
(a) at least one computer readable medium, including;
(i) an application program;
(ii) a service program;
(iii) at least one service function included in the service program;
(iv) an error handling agent;
(b) means, performed by the application program, for calling one service function in the service program;
(c) means, performed by the service program in response to the call to the service function, for;
(i) performing a series of test operations when executing the service function, wherein each test operation returns one identifier if the test operation failed that is associated with one error state;
(ii) transmitting the identifier associated with the error state of the failed test operation to the error handling agent if one test operation failed; and
(d) means, performed by the error handling agent, for;
(i) receiving the identifier from the service program executing the service function;
(ii) generating and transmitting a return code to the application program indicating that an error occurred if the received identifier indicates that one error occurred during execution of the service function. - View Dependent Claims (21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35)
-
-
36. An article of manufacture including code for handling errors in a service program including service functions capable of being called from application programs by:
-
receiving a call for one service function from a service function call within one application program;
performing a series of test operations when executing the service function call, wherein each test operation returns an identifier if the test operation failed, wherein each identifier is associated with one error state; and
if one test operation failed, transmitting the identifier associated with the error state of the failed test operation to an error handling agent, wherein the error handling agent accesses error information associated with the identifier and generates error information describing a specific cause of the error that caused the test operation to fail. - View Dependent Claims (37, 38, 39)
-
-
40. An article of manufacture for handling errors resulting from execution of a service function in a service program, wherein one application program calls the service function in the service program, by:
-
receiving an identifier from the service program executing the service function, wherein the service program performs a series of test operations when executing the service function, wherein each test operation returns one identifier if the test operation failed that is associated with one error state;
if the received identifier indicates that one error occurred during execution of the service function, then generating and transmitting a return code to the application program indicating that an error occurred. - View Dependent Claims (41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54)
-
Specification