Friday, June 1, 2018

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!

Return Results or Throw Exceptions? Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team