PipeMethodCalls
PipeMethodCalls copied to clipboard
Original exception is not passed to client side, just a error string
This is a tricky one because exceptions are not part of the data contract that is exposed on the call interface. Something deep in the code of the method being invoked might throw some kind of exception, but the caller has no way to know how to deserialize that into a type. The only thing I figured I could safely do is call .ToString() on the exception thrown, and expose it on a PipeInvokeFailedException.
It might be possible, but it would require a whole lot more setup to specify the possible exception types, and would only work if all the exceptions involved were serializable.