Convex error handling best practices
I am new to convex, and looked up the relevant error handling docs.
There are some Expected errors, and there could be convex-specific errors (network errs, etc)
I had some questions regarding error retries and how to handle them
Note: the db query is used inside of a try catch
if I handle a public mutation as this, wont the db errors now classify as my Application(expected) errors as well, if so, what's the best way to handle it, just let the db calls be outside of try-catches?
1 Reply
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!