Re: Exception Handling with Seam

Splash Forums PrettyFaces Users Exception Handling with Seam Re: Exception Handling with Seam

#22118

I recommend to simply create a filter that catches both ServletExceptions and PrettyExceptions. If the ServletException wraps a ViewExpiredException or if the PrettyException wraps a ServletException wrapping a ViewExpiredException you do the redirect. This should be pretty simply. However we will discuss if it makes sense to simply rethrow ServletExceptions so that they aren’t wrapped any more.