You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quick fix: Now, every method throws a NotFoundException in all methods in the services. What we really want is to throw a 404 only when an object is really missing. In other situations (e.g. when connecting to db fails) getting not found could be misleading, therefore we should throw the corresponding exception or we wouldn't even need exception handling.
The text was updated successfully, but these errors were encountered:
Quick fix: Now, every method throws a NotFoundException in all methods in the services. What we really want is to throw a 404 only when an object is really missing. In other situations (e.g. when connecting to db fails) getting not found could be misleading, therefore we should throw the corresponding exception or we wouldn't even need exception handling.
The text was updated successfully, but these errors were encountered: