[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-1183) Allow custom ExceptionHandler implementations to be inserted
Pete Muir (JIRA)
jira-events at lists.jboss.org
Sat Aug 30 08:42:38 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-1183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir closed JBSEAM-1183.
-----------------------------
Resolution: Out of Date
Assignee: Pete Muir
This is possible:
Exceptions.instance().getHandlers().add(0, new ExceptionHandler() {
// Implement the exception handler
});
> Allow custom ExceptionHandler implementations to be inserted
> ------------------------------------------------------------
>
> Key: JBSEAM-1183
> URL: https://jira.jboss.org/jira/browse/JBSEAM-1183
> Project: Seam
> Issue Type: Feature Request
> Components: Exception Handling
> Affects Versions: 1.1.6.GA
> Environment: Any
> Reporter: Mike Quilleash
> Assignee: Pete Muir
>
> Currently you can only configure a small subset of actions to occur on an exception (redirect, http-error etc). Enhancing the exception configuration xml to allow pluggable ExceptionHandler implementations would make this a lot more flexible.
> e.g. pages.xml
> <pages>
>
> <!-- the current way, exception class + action -->
> <exception class="javax.persistence.EntityNotFoundException">
> <http-error error-code="404"/>
> </exception>
>
> <!-- proposed enhancement -->
> <exception handlerClass="com.xxx.seam.CustomExceptionHandler"/>
> </pages>
> These should probably have higher precedence than standard configure-by-exception-class handlers.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list