org.exolab.jms.client.net
Class JMSExceptionAdapter

java.lang.Object
  |
  +--org.exolab.jms.client.net.JMSExceptionAdapter
All Implemented Interfaces:
org.exolab.jms.net.proxy.ThrowableAdapter

public class JMSExceptionAdapter
extends java.lang.Object
implements org.exolab.jms.net.proxy.ThrowableAdapter

Adapts unchecked exceptions thrown by the ORB runtime to a JMSException. This avoids the need for them to be rethrown as a RemoteInvocationException.

Version:
$Revision: 1.2 $ $Date: 2005/03/24 13:37:10 $
Author:
Tim Anderson

Constructor Summary
JMSExceptionAdapter()
           
 
Method Summary
 java.lang.Throwable adapt(java.lang.Throwable exception)
          Adapts an Throwable to a JMSException.
 java.lang.Class getTarget()
          Returns the type of the target exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSExceptionAdapter

public JMSExceptionAdapter()
Method Detail

getTarget

public java.lang.Class getTarget()
Returns the type of the target exception.
Specified by:
getTarget in interface org.exolab.jms.net.proxy.ThrowableAdapter
Returns:
the type of the target exception

adapt

public java.lang.Throwable adapt(java.lang.Throwable exception)
Adapts an Throwable to a JMSException.
Specified by:
adapt in interface org.exolab.jms.net.proxy.ThrowableAdapter
Parameters:
exception - the exception to adapt
Returns:
the adapted exception


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.