|
|
|
|
|
by vinceguidry
3029 days ago
|
|
Yes, you can absolutely make Exceptions a first-class domain concept, I've been doing this in a worker instrumentation that I've been doing. I have a custom error class that inherits from StandardError, and the exception handling code handles these custom errors differently than other errors. This way knowledge can be slowly wrapped around the failure modes as they get seen. |
|