mandala.jacob.remote
Class RemoteExceptionInfo

java.lang.Object
  extended bymandala.jacob.remote.RemoteExceptionInfo

public class RemoteExceptionInfo
extends java.lang.Object

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

Instances of this class are immutable. Each field is public final.

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

Field Summary
 java.lang.Object[] args
           
 TransportException exception
           
 MethodOp method
           
 java.lang.Object target
           
 
Constructor Summary
RemoteExceptionInfo(java.lang.Object target, TransportException exception, MethodOp method, java.lang.Object[] args)
          Creates a new RemoteExceptionInfo instance.
 
Method Summary
 java.lang.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.
 java.lang.Object getTarget()
          Returns the AbstractRemote sub-class instance which was the target of the remote method invocation.
 java.lang.Throwable getThrowable()
          Deprecated. As of Mandala 2.3, replaced by getTransportException()
 TransportException getTransportException()
          Returns the exception thrown during the transport.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

target

public final java.lang.Object target

exception

public final TransportException exception

method

public final MethodOp method

args

public final java.lang.Object[] args
Constructor Detail

RemoteExceptionInfo

public RemoteExceptionInfo(java.lang.Object target,
                           TransportException exception,
                           MethodOp method,
                           java.lang.Object[] args)

Creates a new RemoteExceptionInfo 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 java.lang.Object getTarget()

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

Returns:
the target object

getThrowable

public java.lang.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 java.lang.Object[] getArgs()

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

Returns:
an Object[] value

toString

public java.lang.String toString()


Mandala help mailing list