mandala.jacob.remote
Class AbstractRemote.ExceptionInfo

java.lang.Object
  extended bymandala.jacob.remote.AbstractRemote.ExceptionInfo
Enclosing class:
AbstractRemote

public class AbstractRemote.ExceptionInfo
extends Object

This class contains any usefull informations that may be used to recover from a catched remote exception to a valid state.

Since:
1.0
Version:
1.0
Author:
eipi
See Also:
AbstractRemote

Constructor Summary
AbstractRemote.ExceptionInfo(Object target, TransportException exception, MethodOp method, Object[] args)
          Creates a new ExceptionInfo instance.
 
Method Summary
 Object[] getArgs()
          Returns the arguments of the method for which the transport throws an exception.
 MethodOp getMethod()
          Returns the method for which the transport throws an exception.
 Object getTarget()
          Returns the AbstractRemote sub-class instance which was the target of the remote method invocation.
 Throwable getThrowable()
          Deprecated. As of Mandala 2.3, replaced by getTransportException()
 TransportException getTransportException()
          Returns the exception thrown during the transport.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractRemote.ExceptionInfo

public AbstractRemote.ExceptionInfo(Object target,
                                    TransportException exception,
                                    MethodOp method,
                                    Object[] args)

Creates a new ExceptionInfo instance.

Parameters:
target - the AbstractRemote sub-class instance which was the target of the remote method invocation
exception - the remote exception thrown
method - the method
args - the arguments of the method
Method Detail

getTarget

public Object getTarget()

Returns the AbstractRemote sub-class instance which was the target of the remote method invocation.

Returns:
the target object

getThrowable

public Throwable getThrowable()
Deprecated. As of Mandala 2.3, replaced by getTransportException()

Since:
2.3

getTransportException

public TransportException getTransportException()

Returns the exception thrown during the transport.

Returns:
a TransportException value
Since:
2.3

getMethod

public MethodOp getMethod()

Returns the method for which the transport throws an exception.

Returns:
a MethodOp value

getArgs

public Object[] getArgs()

Returns the arguments of the method for which the transport throws an exception.

Returns:
an Object[] value

toString

public String toString()


Mandala help mailing list