Domain Errors and Infrastructure Errors
A domain error explains why an operation is invalid under its rules. An infrastructure failure explains why the operation could not be completed or confirmed.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace two outcomes
A reservation may reject a fully booked session even with working storage. A temporary database timeout may prevent learning whether seats exist. Error results preserve different reasons for a caller.
Translate at the appropriate boundary
A user interface can present different guidance for a permanent rule and temporary unavailability. A retry should follow the operation's repeat contract, especially when a failed acknowledgement leaves the final write uncertain.[1]