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;
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;
generating error information providing a description of a service function error associated with a received identifier;
providing a directory including entries corresponding to identifiers capable of being received from the service function, wherein the directory maintains error information for identifiers that describes a specific cause of the test operation failure associated with the identifier;
accessing one entry in the directory corresponding to the received identifier, wherein the generated error information comprises the description of a specific cause of the error in the directory entry for the received identifier;
detecting a change in a version number of the service program;
accessing an updated directory reflecting changes resulting from an update to service functions in the service program; and
replacing the directory with the updated directory, wherein the updated directory is capable of including modifications to the identifiers and error information.
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.
-
Citations
45 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; 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; generating error information providing a description of a service function error associated with a received identifier; providing a directory including entries corresponding to identifiers capable of being received from the service function, wherein the directory maintains error information for identifiers that describes a specific cause of the test operation failure associated with the identifier; accessing one entry in the directory corresponding to the received identifier, wherein the generated error information comprises the description of a specific cause of the error in the directory entry for the received identifier; detecting a change in a version number of the service program; accessing an updated directory reflecting changes resulting from an update to service functions in the service program; and replacing the directory with the updated directory, wherein the updated directory is capable of including modifications to the identifiers and error information. - 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; generating error information providing a description of a service function error associated with the received identifier; providing a directory including entries corresponding to identifiers capable of being received from the service function, wherein the directory maintains error information for identifiers that describes a specific cause of the test operation failure associated with the identifier; accessing one entry in the directory corresponding to the received identifier, wherein the generated error information comprises the description of a specific cause of the error in the directory entry for the received identifier; detecting a change in a version number of the service program; accessing an updated directory reflecting changes resulting from an update to service functions in the service program; and replacing the directory with the updated directory, wherein the updated directory is capable of including modifications to the identifiers and error information. - View Dependent Claims (6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
-
-
17. 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; (iii) generating error information providing a description of a service function error associated with the received identifier; (iv) providing a directory including entries corresponding to identifiers capable of being received from the service function, wherein the directory maintains error information for identifiers that describes a specific cause of the test operation failure associated with the identifier; and (v) accessing one entry in the directory corresponding to the received identifier, wherein the generated error information comprises the description of a specific cause of the error in the directory entry for the received identifier; (vi) detecting a change in a version number of the service program; (vii) accessing an updated directory reflecting changes resulting from an update to service functions in the service program; and (viii) replacing the directory with the updated directory, wherein the updated directory is capable of including modifications to the identifiers and error information. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29)
-
-
30. 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; 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; generating error information providing a description of a service function error associated with a received identifier; providing a directory including entries corresponding to identifiers capable of being received from the service function, wherein the directory maintains error information for identifiers that describes a specific cause of the test operation failure associated with the identifier; accessing one entry in the directory corresponding to the received identifier, wherein the generated error information comprises the description of a specific cause of the error in the directory entry for the received identifier; detecting a change in a version number of the service program; accessing an updated directory reflecting changes resulting from an update to service functions in the service program; and replacing the directory with the updated directory, wherein the updated directory is capable of including modifications to the identifiers and error information. - View Dependent Claims (31, 32, 33)
-
-
34. 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; generating error information providing a description of a service function error associated with the received identifier; providing a directory including entries corresponding to identifiers capable of being received from the service function, wherein the directory maintains error information for identifiers that describes a specific cause of the test operation failure associated with the identifier; accessing one entry in the directory corresponding to the received identifier, wherein the generated error information comprises the description of a specific cause of the error in the directory entry for the received identifier; detecting a change in a version number of the service program; accessing an updated directory reflecting changes resulting from an update to service functions in the service program; and replacing the directory with the updated directory, wherein the updated directory is capable of including modifications to the identifiers and error information. - View Dependent Claims (35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45)
-
Specification