typed-rpc icon indicating copy to clipboard operation
typed-rpc copied to clipboard

Custom error interceptor

Open lorefnon opened this issue 2 years ago • 0 comments

Hello, thanks for creating & maintaining this library.

It would be nice if we could override the implementation of getErrorCode and getErrorMessage here through an additional argument to rpcHandler or handleRpc.

I can contribute a patch if this is acceptable.

lorefnon avatar Apr 19 '23 12:04 lorefnon