org.exolab.jms.client.net
Class XAExceptionAdapter

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

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

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

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

Constructor Summary
XAExceptionAdapter()
           
 
Method Summary
 java.lang.Throwable adapt(java.lang.Throwable exception)
          Adapts an Throwable to a XAException.
 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

XAExceptionAdapter

public XAExceptionAdapter()
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 XAException.
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.