I have a custom web service that when an exception happens I serialize up the exception chain and send it to the client, now that works fine. However what I'd like to do on the client side is recreate the exception chain somehow and throw it, so that the user can walk it like they could on the server side.
I'm not expecting to be able to throw exceptions I don't know about, I was thinking about throwing a chain of WrappedException
or some such with stack, message etc I have set.
Does anyone know any way to do this?
To avoid any confusion this is completely custom, I make requests in xml to a web server and get xml back, if an exception is thrown I serialize this chain into xml and return this xml to the calling client.