26. The system of claim 25 wherein the wrapping code creates a new exception instance type, and wherein the wrapping code is further configured to preserve at least some data of the passed exception instance type in the new exception instance type.
25. The system of claim 17 wherein the wrapping code is called with a calling exception type, and wherein the wrapping code determines if the calling exception type is an ancestor type of a passed exception instance type, and if so, to preserve the passed exception instance as the wrapped exception instance, and if not, to create a new exception instance corresponding to the calling exception type.