org.jboss.seam.exception.example.basic.servlet.handler
Class StandardHandlerDeclaration

java.lang.Object
  extended by org.jboss.seam.exception.example.basic.servlet.handler.StandardHandlerDeclaration

@HandlesExceptions
public class StandardHandlerDeclaration
extends Object

A sample Exception Handler container, using the typical means of declaring handlers.


Constructor Summary
StandardHandlerDeclaration()
           
 
Method Summary
 void assertionErrorHandler(CaughtException<AssertionError> event, HttpServletResponse response)
           
 void illegalArgumenBreadthFirsttHandler(CaughtException<IllegalArgumentException> event, HttpServletResponse response)
           
 void illegalArgumentHandler(CaughtException<IllegalArgumentException> event, HttpServletResponse response)
           
 void illegalStateHandler(CaughtException<IllegalStateException> event, HttpServletResponse response)
           
 void ioExceptionHandler(CaughtException<IOException> event, HttpServletResponse response)
           
 void nullPointerHandler(CaughtException<NullPointerException> event, HttpServletResponse response)
           
 void throwableHandler(CaughtException<Throwable> event, HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardHandlerDeclaration

public StandardHandlerDeclaration()
Method Detail

throwableHandler

public void throwableHandler(@Handles(during=BREADTH_FIRST)
                             CaughtException<Throwable> event,
                             HttpServletResponse response)

assertionErrorHandler

public void assertionErrorHandler(@Handles
                                  CaughtException<AssertionError> event,
                                  HttpServletResponse response)

nullPointerHandler

public void nullPointerHandler(@Handles
                               CaughtException<NullPointerException> event,
                               HttpServletResponse response)

illegalArgumenBreadthFirsttHandler

public void illegalArgumenBreadthFirsttHandler(@Handles(during=BREADTH_FIRST)
                                               CaughtException<IllegalArgumentException> event,
                                               HttpServletResponse response)

illegalArgumentHandler

public void illegalArgumentHandler(@Handles
                                   CaughtException<IllegalArgumentException> event,
                                   HttpServletResponse response)

illegalStateHandler

public void illegalStateHandler(@Handles
                                CaughtException<IllegalStateException> event,
                                HttpServletResponse response)

ioExceptionHandler

public void ioExceptionHandler(@Handles
                               CaughtException<IOException> event,
                               HttpServletResponse response)


Copyright © 2011 Seam Framework. All Rights Reserved.