Jan 28, 2024
Business exceptions is an anti-pattern. Global exception handling is even worse anti-pattern. Returning Result provides exactly the same amount of information than checked exception (i.e. that operation may fail), but doesn't cause code coupling. It also doesn't break execution flow and, with proper Result design enables composition and declarative processing - properties exception-based error handling can only dream about.
