Return Results or Throw Exceptions?
Hey all!
Currently writing a web api, and I'm not sure how I should be passing around errors in my app. Should I be using exceptions or taking a more functional approach and returning a custom result & result<T> object?
Also, when do you deem it necessary to make your own exception type?
Thanks!
0 comments:
Post a Comment