Hacker News new | ask | show | jobs
by bberrry 536 days 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.
1 comments

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)