صدور Exception یا بازگشت Result به عنوان خروجی متد، برای رسیدگی به خطاها
200, OK
https://enterprisecraftsmanship.com/2017/03/13/error-handling-exception-or-result/ icon

Summary

It’s pretty easy to differentiate use cases for Result and exceptions. Whenever the failure is something you expect and know how to deal with – catch it at the lowest level possible and convert into a Result instance. If you don’t know how to deal with it – let it propagate and interrupt the current business operation. Don’t catch exceptions you don’t know what to do about. 

صدور Exception یا بازگشت Result به عنوان خروجی متد، برای رسیدگی به خطاها