org.exolab.jms.net.proxy
Interface ThrowableAdapter


public interface ThrowableAdapter

Adapts unchecked exceptions, so that they can be rethrown as checked exceptions. By default, the ORB rethrows unchecked exceptions as RemoteInvocationException.

Version:
$Revision: 1.1 $ $Date: 2005/03/24 13:49:33 $
Author:
Tim Anderson

Method Summary
 java.lang.Throwable adapt(java.lang.Throwable exception)
          Adapts an Throwable to the target exception type.
 java.lang.Class getTarget()
          Returns the type of the target exception.
 

Method Detail

getTarget

public java.lang.Class getTarget()
Returns the type of the target exception.
Returns:
the type of the target exception

adapt

public java.lang.Throwable adapt(java.lang.Throwable exception)
Adapts an Throwable to the target exception type.
Parameters:
exception - the exception to adapt
Returns:
the adapted exception


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