ipld / edelweiss

Decentralized Protocol Compiler
Other
16 stars 6 forks source link

proxy synchronous service errors to client #30

Closed petar closed 2 years ago

petar commented 2 years ago

User service implementations can generate both synchronous errors (immediately in response to a correctly decoded method call) and asynchronous error (as part of the multi-response sequence).

This PR ensures that synchronous errors are propagated to the client in a manner distinguished from asynchronous ones, so that the client can return the synchronous errors to the user synchronously (i.e. in the error result returned by the method call itself).