Wondering what approaches others have used to providing a better user experience when ‘exceptions’ are encountered in the code. This may be just a matter of philosophy, but it seems to me that ‘out of the box’ Yii relies heavily on exceptions to provide user feedback.
Over time, I’ve come to rely less on exceptions. For example, I prefer to use redirects with flash messages for access denied situations. Mostly because the exception page is a ‘dead end’ in the road and the user will manually have to go back to where they were anyway.
I have the Yii Cookbook and in there the author uses an interesting approach - his ‘error’ landing page for 404’s is modified to present the visitor with an alternate list of options… something like “We can’t find what you are looking for - perhaps you were looking for link1, 2, or 3 instead”.
So - what is your approach when exceptions happen?