KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > resource > adapter > jms > inflow > DefaultRuntimeErrorHandler


1 package org.jboss.resource.adapter.jms.inflow;
2
3 /**
4  * A DefaultRuntimeErrorHandler.
5  *
6  * @author <a HREF="weston.price@jboss.com">Weston Price</a>
7  * @version $Revision: 1.1 $
8  */

9 public class DefaultRuntimeErrorHandler implements RuntimeErrorHandler
10 {
11    public void handleRuntimeError(Throwable JavaDoc t)
12    {
13       
14       if(t instanceof RuntimeException JavaDoc || t instanceof Error JavaDoc)
15          throw (RuntimeException JavaDoc)t;
16         
17    }
18    
19 }
20
Popular Tags