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
Ah, that was an unintended consequence of adding general support for std::expected. This should definitely be fixed. I'll experiment with a solution before I ask for a PR. Thanks for bringing this up.
So far I find using rpc error is fine for me, but from design point of view, maybe it's a good idea to allow using, e.g, derived class of rpc error or some sort ...
Try to return custom errors from json-rpc server methods like
but the response actually use the returned error as the result payload, i.e. the result look like
instead of using the error as json-rpc error, like
Is that possible to integrate error handling with the method handler?
The text was updated successfully, but these errors were encountered: