In web apps there are many cases where things should just work as expected; for example you get a userId from a link, all links are generated so the link should be valid.
Now suppose the link has been modified. Either on purpose or by a failed copy and paste action. What should happen?
What is a good scenario for handling these kind of errors?
I recently discovered the SimpleMappingExceptionResolver. Is it good practice to throw something like a 'ApplicationInconsistencyException' and let the ExceptionResolver handle it?
Just wondering what people are doing for these kind of errors.