For all ‘Happy Path’ developers, proper error handling is a fundamental feature of software, and it is quite possible that error handling is for half of your code.
![]() |
| Expect the unexpected: not all English postboxes are red. This Victorian one stands in Dublin. |
There two types of errors:
- Retryable Error
- Permanate Error
Retryable error: a temporary issue has occurred. a retry is likely successful. Example causes: firewall reboot, db maintenance, HTTP 5XX.
Permanent error: error where a retry will always end-up with an error. Example: HTTP4XX, NPEs (Null Pointer Exceptions).
After a retry sequence, Retryable errors should become permanent errors.
And at last, don’t forget Logging and Monitoring of errors.
