摘要 |
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.
|