darx
Class IllegalLeaderRemovalException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.rmi.RemoteException
                  extended by darx.DarxException
                      extended by darx.IllegalLeaderRemovalException
All Implemented Interfaces:
java.io.Serializable

public class IllegalLeaderRemovalException
extends DarxException

This exception is thrown when an attempt to remove the given task would result in an inconsistent replication group.

It is originally conceived to be used only within replication groups.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.RemoteException
detail
 
Constructor Summary
IllegalLeaderRemovalException(ReplicantInfo ri)
          Constructs a new instance of the class.
 
Method Summary
 ReplicantInfo getReplicantInfo()
           
 java.lang.String toString()
           
 
Methods inherited from class java.rmi.RemoteException
getCause, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalLeaderRemovalException

public IllegalLeaderRemovalException(ReplicantInfo ri)
Constructs a new instance of the class.

Parameters:
ri - the information concerning the replicant related to the failed removal attempt.
Method Detail

getReplicantInfo

public ReplicantInfo getReplicantInfo()
Returns:
the URL of the host where the replicant is being looked for.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable
Returns:
the information conveyed by this exception, in String format.