Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Ugh. 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: