SYSTEM AND METHOD FOR FAULT MAPPING OF EXCEPTIONS ACROSS PROGRAMMING MODELS
First Claim
1. A computer program product comprising a computer useable medium having a computer readable program, wherein the computer readable program when executed on a computer causes the computer to:
- receive, from a first device operating a first programming model, an exception that includes a set of data and is based upon a fault that occurred during an execution of an instruction in a second programming model, the instruction having been transmitted by the first device to the second device;
determine if the exception is a business type exception by comparing an identifier associated with the exception with one or more predetermined identifiers that are associated with the business type exception;
translate the set of data according to a set of mapping data to generate a set of translated data if the exception is determined to be the business type exception; and
provide an error message if the exception is determined to be a type other than the business type exception.
4 Assignments
0 Petitions
Accused Products
Abstract
A system and method for mapping exceptions from a first programming model to a second programming model is disclosed. The system comprises a first device operating a first programming model and a second device operating a second programming model. The first device sends an instruction to, or invokes the second device to execute an instruction. As a result, a fault occurs during execution of the instruction in the second programming model. An exception based on the fault is raised, and returned to the first device. The system further comprises a fault mapping module configured to receive the exception from the first device. The fault mapping module attempts to determine the type of exception received. This determination may be accomplished by comparing an identifier within the exception with one or more predetermined identifiers that indicate exception type. The fault mapping module is also configured to interpret the exception according to a set of mapping data to generate an interpreted exception recognizable by the first programming model if the exception is determined to be of a predetermined type.
20 Citations
30 Claims
-
1. A computer program product comprising a computer useable medium having a computer readable program, wherein the computer readable program when executed on a computer causes the computer to:
-
receive, from a first device operating a first programming model, an exception that includes a set of data and is based upon a fault that occurred during an execution of an instruction in a second programming model, the instruction having been transmitted by the first device to the second device; determine if the exception is a business type exception by comparing an identifier associated with the exception with one or more predetermined identifiers that are associated with the business type exception; translate the set of data according to a set of mapping data to generate a set of translated data if the exception is determined to be the business type exception; and provide an error message if the exception is determined to be a type other than the business type exception. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A system comprising:
-
a first device operating a first programming model; a second device operating a second programming model, the second device being invoked by the first computer to execute an instruction; and a fault mapping module configured to receive an exception from the first device, the exception based on a fault that occurred during the execution of the instruction in the second programming model, the fault mapping module configured to determine a type of the exception by comparing an identifier within the exception with one or more identifiers indicating a type, and interpret the exception according to a set of mapping data to generate an interpreted exception if the exception is determined to be of a predetermined type. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A method comprising:
-
receiving from a first device operating a first programming model, an exception that includes a set of data and is based upon a fault that occurred during the execution of an instruction in a second programming model, the instruction having been transmitted by the first device to the second device; determining if the exception is a business type exception by comparing an identifier associated with the exception with one or more predetermined identifiers that are associated with the business type exception; translating the set of data according to a set of mapping data to generate a set of translated data if the exception is determined to be the business type exception; and providing an error message if the exception is determined to be a type other than the business type exception. - View Dependent Claims (22, 23, 24, 25, 26, 27, 28, 29, 30)
-
Specification