Creates an System.Runtime.ExceptionServices.ExceptionDispatchInfo object that represents the specified exception at the current point in code.
An object that represents the specified exception at the current point in code.
You can use the System.Runtime.ExceptionServices.ExceptionDispatchInfo object that is returned by this method at another time and possibly on another thread to rethrow the specified exception, as if the exception had flowed from this point where it was captured to the point where it is rethrown.
If the exception is active when it is captured, the current stack trace information and Watson information that is contained in the exception is stored. If it is inactive, that is, if it has not been thrown, it will not have any stack trace information or Watson information.