$B=i$a$FEj9F$5$;$F$$$?$@$-$^$9!#(B<br>ricordi$B$H?=$7$^$9!#(B<br>
<br>
PojoAction$B$X$NFH<+(BThrowsInterceptor$B$r0J2<$N$h$&$J7A$G:n@.$7!"(B<br>
Action$B$N%a%=%C%I$+$i(BRuntimeException$B$rHt$P$9$h$&$K$7$F;n$7$^$7$?$,!"$&$^$/E,MQ$5$l$F$/$l$^$;$s!#(B<br>
$B$I$N$h$&$K=q$/$N$,@5$7$$$+65$($F$$$?$@$1$^$9$G$7$g$&$+!)(B<br>
<br>
$B4D6-(B<br>
JDK6 update2<br>
s2container-2.4.17<br>
s2struts-1.3.0-RC1<br>
mayaa-1.1.3<br>
<br>
<br>
package test;<br>
<br>import org.aopalliance.intercept.MethodInvocation;<br>
import org.seasar.framework.aop.interceptors.ThrowsInterceptor;<br>
import org.seasar.framework.container.SingletonS2Container;<br><br>
public class ThrowsHandleInterceptor extends ThrowsInterceptor {<br>
<br>
public void handleThrowable(Throwable t, MethodInvocation invocation) throws Throwable {<br>
String name = t.getClass().getName();<br>
System.out.println(name);<br>
}<br>
}<br>
<br>
----customizer.dicon<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN"<br>
"<a href="http://www.seasar.org/dtd/components24.dtd" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.seasar.org/dtd/components24.dtd</a>"><br>
<components><br>
<include path="default-customizer.dicon"/><br>
<br>
<component name="propertyInterType" class="org.seasar.framework.aop.intertype.PropertyInterType" /><br>
<component name="propertyInterTypeCustomizer" class="org.seasar.framework.container.customizer.InterTypeCustomizer"><br>
<property name="interTypeName">"propertyInterType"</property><br>
</component><br>
<component name="testThrowsInterceptor" class="test.TestThrowsInterceptor" /><br>
<component name="actionCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"><br>
<initMethod name="addCustomizer"><br>
<arg>traceCustomizer</arg><br>
</initMethod><br>
<initMethod name="addCustomizer"><br>
<arg>propertyInterTypeCustomizer</arg><br>
</initMethod><br>
<aspect pointcut="do.*"><br>
testThrowsInterceptor<br>
</aspect><br>
</component><br>
</components><br>
<br>