4 ms·
Totally agree about returning a 5XX error. In my app that would be a single RetryableException back to the caller instead of the internal db error.
by eweise 4y ago
Totally agree about returning a 5XX error. In my app that would be a single RetryableException back to the caller instead of the internal db error.
- hbrn 4y agoUgh. You should never call something "RetryableException". 1. You are in no position to decide for your customer whether exception is "Retryable". 2. For cases where you are in that position, you should just retry automatically. 3. RetryableException tells absolutely nothing about what happened. It's no better than raising MondayException for exceptions that happen on Monday.