[jboss-cvs] jboss-seam/src/main/org/jboss/seam/interceptors ...
Norman Richards
norman.richards at jboss.com
Thu Jul 13 17:08:46 EDT 2006
User: nrichards
Date: 06/07/13 17:08:46
Modified: src/main/org/jboss/seam/interceptors
ExceptionInterceptor.java
Log:
don't redirect to debug page on @ApplicationException - code is normally written to expect and deal with these exceptions
Revision Changes Path
1.4 +3 -2 jboss-seam/src/main/org/jboss/seam/interceptors/ExceptionInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ExceptionInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/interceptors/ExceptionInterceptor.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ExceptionInterceptor.java 1 Jul 2006 12:38:48 -0000 1.3
+++ ExceptionInterceptor.java 13 Jul 2006 21:08:45 -0000 1.4
@@ -1,4 +1,4 @@
-//$Id: ExceptionInterceptor.java,v 1.3 2006/07/01 12:38:48 gavin Exp $
+//$Id: ExceptionInterceptor.java,v 1.4 2006/07/13 21:08:45 nrichards Exp $
package org.jboss.seam.interceptors;
import java.util.Map;
@@ -53,7 +53,8 @@
error( e.getClass().getAnnotation(HttpError.class).errorCode(), e.getMessage() );
handled(e);
}
- else if ( Init.instance().isDebug() )
+ else if ( Init.instance().isDebug() &&
+ !e.getClass().isAnnotationPresent(javax.ejb.ApplicationException.class) )
{
redirectToDebugPage(e);
handled(e);
More information about the jboss-cvs-commits
mailing list