Replies: 1 comment
-
|
Hey! 👋 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Related to this StackOverflow post, I'm looking for best practices to communicate exceptions to the client.
I have 3 key point where I want to notify client about errors:
as per the third one, I'm currently using
trystatement to catch exceptions and send them over "error type" socket.Not sure if this is best practice but I figured that way I can prevent the connection from being closed.
Anyway I'll be happy for any guide or an example, or even a shot explanation about best practices for error handling. and if there is a way to propagate exceptions as http response errors instead of getting
1011 - There was a bad response from the serverall the time.The full post with code examples in here
Beta Was this translation helpful? Give feedback.
All reactions