darx
Class NoMoreReplicantsException

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.NoMoreReplicantsException
All Implemented Interfaces:
java.io.Serializable

public class NoMoreReplicantsException
extends DarxException

This exception is thrown when an operation has been attempted on an empty replication group. For example, this can happen when trying to determine a new leader although the previous one wasn't replicated

It is originally conceived to be used only within<\B> replication groups.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.RemoteException
detail
 
Constructor Summary
NoMoreReplicantsException(java.lang.String task_name)
          Constructs a new instance of the class.
 
Method Summary
 java.lang.String getName()
           
 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

NoMoreReplicantsException

public NoMoreReplicantsException(java.lang.String task_name)
Constructs a new instance of the class.

Parameters:
task_name - The generic name of the unrepresented agent.
Method Detail

getName

public java.lang.String getName()
Returns:
The generic name of the unrepresented agent.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable
Returns:
The explanation for the triggering of this exception.