top | item 42489194

(no title)

bberrry | 1 year ago

Depends on what you're writing I guess (as always). I write backend services and if there is an exception thrown, generally the whole request is forfeit. So a top-level exception handler is all that's needed.. no checked exceptions ruining my lambdas or streams like in Java.

discuss

order

t-writescode|1 year ago

Not to mention a top-level exception system is a great place to put the db transaction rollback so everything’s always undone (some exceptions apply)