mbrezu / Shovel

Shovel is a bytecode virtual machine that is embeddable, secure and interruptible.
BSD 2-Clause "Simplified" License
77 stars 5 forks source link

In Vm.CheckVmWithoutError, wrap exceptions in ShovelException before rethrowing them. #3

Closed fsoikin closed 10 years ago

fsoikin commented 10 years ago

When a previously caught exception is rethrown, its call stack is replaced by the call stack of the rethrowing point, thus irrevocably losing the original call stack. Wrapping in another exception (through the InnerException property) preserves the stack.