System and method for fault mapping of exceptions across programming models
First Claim
1. A computer program product comprising a computer readable storage 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 execution of an instruction in a second programming model operating on a second device, the instruction having been transmitted by the first device to the second device;
determine a type of the exception by comparing an identifier associated with the exception with one or more predetermined identifiers that indicate exception type;
determine if the exception is one of a business type exception and a system specific exception; 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.
5 Assignments
0 Petitions
Accused Products
Abstract
A system and method for mapping exceptions from a first programming model to a second programming model. 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. A fault mapping module receives the exception from the first device. The fault mapping module attempts to determine the type of exception received by comparing an identifier with predetermined identifiers indicating exception type. The fault mapping module interprets the exception to generate an interpreted exception recognizable by the first programming model if the exception is determined to be of a predetermined type.
-
Citations
19 Claims
-
1. A computer program product comprising a computer readable storage 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 execution of an instruction in a second programming model operating on a second device, the instruction having been transmitted by the first device to the second device; determine a type of the exception by comparing an identifier associated with the exception with one or more predetermined identifiers that indicate exception type; determine if the exception is one of a business type exception and a system specific exception; 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 (2, 3, 4, 5, 6, 7)
-
-
8. 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 device 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, wherein the fault mapping module determines if the exception is one of a business type exception and a system specific exception and interprets 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 (9, 10, 11, 12)
-
-
13. 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 execution of an instruction in a second programming model operating on a second device, the instruction having been transmitted by the first device to the second device; determining a type of the exception by comparing an identifier associated with the exception with one or more predetermined identifiers that indicate exception type; determining if the exception is one of a business type exception and a system specific exception; and interpreting 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 (14, 15, 16, 17, 18, 19)
-
Specification