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

    Handle 404 Exceptions with solder?

    david meier Newbie



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

      How can I acchieve this with Seam 3?


      I started with:


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



      But this obv only captures Throwables.


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