[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...
Gavin King
gavin.king at jboss.com
Thu Mar 8 21:37:25 EST 2007
User: gavin
Date: 07/03/08 21:37:25
Modified: src/main/org/jboss/seam/core Exceptions.java
Log:
always pass the unhandled exception in the conversation context
Revision Changes Path
1.35 +5 -0 jboss-seam/src/main/org/jboss/seam/core/Exceptions.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Exceptions.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/Exceptions.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- Exceptions.java 21 Feb 2007 20:32:41 -0000 1.34
+++ Exceptions.java 9 Mar 2007 02:37:25 -0000 1.35
@@ -52,6 +52,11 @@
public void handle(Exception e) throws Exception
{
+ if ( Contexts.isConversationContextActive() )
+ {
+ Contexts.getConversationContext().set("org.jboss.seam.exception", e);
+ }
+
//build a list of the nested exceptions
List<Exception> causes = new ArrayList<Exception>();
for (Exception cause=e; cause!=null; cause=EJB.getCause(cause))
More information about the jboss-cvs-commits
mailing list