2 Replies Latest reply on Apr 2, 2012 12:35 PM by membersound

    Handle 404 Exceptions with solder?

    membersound

      Hi,

       

      I'm trying to write a global exception handler for all occuring exceptions.

      How can I acchieve this with Seam 3?

       

      I started with:

       

      @HandlesExceptions
      public class DefaultExceptionHandlers {
      
             void printExceptions(@Handles CaughtException<Throwable> evt)
             {
                System.out.println("Something bad happened: " +
                evt.getException().getMessage());
                evt.markHandled();
             }
      }
      

       

       

      But this obv only captures Throwables.

       

      What about 500 and 404? How can I handle eg 404 likewise in this default handler?

       

      tyvm