Make DefaultExceptionHandler more useful by pulling up some parts of
DelegatingExceptionHandler
-----------------------------------------------------------------------------------------------
Key: STS-569
URL: http://www.stripesframework.org/jira/browse/STS-569
Project: Stripes
Issue Type: Improvement
Components: ActionBean Dispatching
Reporter: Tim Fennell
Assignee: Tim Fennell
Fix For: Release 1.5
The DefaultExceptionHandler is not a particularly useful class and the
DelegatingExceptionHandler is rather complicated. It would be nice to pull
some functionality up from DelegatingEH into the default such you users could
subclass the DefaultEH and add extra "handler" methods to their subclass and
have those automatically picked up. Such a subclass might then look like:
public MyExceptionHandler extends DefaultExceptionHandler {
public Resolution handle(FileUploadLimitExceededException ex,
HttpServletRequest req, HttpServletResponse resp) { ... }
public Resolution handle(MySecurityException ex, HttpServletRequest req,
HttpServletResponse resp) { ... }
public void catchAll(Throwable t, HttpServletRequest req,
HttpServletResponse resp) { ... }
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development