DEV Community

Discussion on: Error handling - Returning Results

 
michael_altmann profile image
Michael Altmann

You are right, you have multiple options. I think the problem is you don't distuingish between the different types of errors. Depend on that you habe to choose the correct error handling mechanism. Doing all with exceptions is Not the correct way.

Here is a great example using Result object: jimmybogard.com/domain-command-pat...