You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently the code throws the exception directly on the client side which rewrites the call stack, the code should wrap the exception in another Exception.
Alternatively an Aggregate Exception can also be thrown with the actual exception as its inner exception. Since user code awaits on tasks, throwing AggregateExceptions will not be right thing to do as await should not throw AggregateException and instead unwrap.
The text was updated successfully, but these errors were encountered:
amanbha
changed the title
Throw a wrapped Exception in Remoting for exceptions coming form user code.
Throw a custom Exception in Remoting with inner exception as coming from user service code.
Sep 2, 2019
Its suggested in the thread to throw a another custome exception with original exception from server as the inner exception.
amanbha
changed the title
Throw a custom Exception in Remoting with inner exception as coming from user service code.
Throw a custom Exception in Remoting, inner exception will be the serialized exception from user service code.
Sep 2, 2019
currently the code throws the exception directly on the client side which rewrites the call stack, the code should wrap the exception in another Exception.
Alternatively an Aggregate Exception can also be thrown with the actual exception as its inner exception. Since user code awaits on tasks, throwing AggregateExceptions will not be right thing to do as await should not throw AggregateException and instead unwrap.
The text was updated successfully, but these errors were encountered: