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
In order to trigger a 404 error page from my controller, I can throw a RequestNotFoundException. This works fine, but the naming of this exception is a bit misleading. What do you think about renaming it to ResourceNotFoundException?
Thanks!
The text was updated successfully, but these errors were encountered:
The other exceptions are "ForbiddenRequest" and "BadRequest", so it makes sense to have such "RequestNotFound"... In my opinion, a "resource" would more be referencing an asset if you are building a web application.
But even if we would agree, we cannot just rename such a class. We have to introduce the new one, deprecate the older one, document the migration between both, maintain both during a certain time, then clean the old class.
It's just a feeling of mine that RequestNotFoundException might be the wrong term here. In the end, it is not the request that could not be found, but the requested resource. And since in the Web all URLs locate resources, I thought that ResourceNotFoundException might be a good name.
And yes, such a change would unfortunately require all the steps you mentioned... :-(
In order to trigger a 404 error page from my controller, I can throw a RequestNotFoundException. This works fine, but the naming of this exception is a bit misleading. What do you think about renaming it to ResourceNotFoundException?
Thanks!
The text was updated successfully, but these errors were encountered: