org.ourgrid.mygrid.replicaexecutor.exception
Class ReplicaFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ourgrid.common.exception.OurgridException
              extended by org.ourgrid.gridmachine.exception.FailCauseException
                  extended by org.ourgrid.mygrid.replicaexecutor.exception.ReplicaFailedException
All Implemented Interfaces:
java.io.Serializable

public class ReplicaFailedException
extends FailCauseException

Description: Thrown whenever a replica fails.

Version:
1.0 Created on 14/07/2004
See Also:
Serialized Form

Constructor Summary
ReplicaFailedException(ReplicaEntry replica, ExecutorResult replicaResult)
          Main constructor.
ReplicaFailedException(ReplicaEntry replica, ExecutorResult replicaResult, java.lang.Throwable newDetail)
          Constructor.
 
Method Summary
 java.lang.String getMessage()
          Gets a formatted message for this exception
 ReplicaEntry getReplica()
          Gets the replica
 ExecutorResult getReplicaResult()
          Gets the result of the replica that failed
 java.lang.String getSimpleMessage()
          Used to acquire a simple message determining the fail cause.
 
Methods inherited from class org.ourgrid.common.exception.OurgridException
getStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplicaFailedException

public ReplicaFailedException(ReplicaEntry replica,
                              ExecutorResult replicaResult)
Main constructor.

Parameters:
replica - The replica that failed.
replicaResult - The replica result

ReplicaFailedException

public ReplicaFailedException(ReplicaEntry replica,
                              ExecutorResult replicaResult,
                              java.lang.Throwable newDetail)
Constructor.

Parameters:
replica - The replica that failed.
replicaResult - The replica result
newDetail - Possible cause for the problem
Method Detail

getReplicaResult

public ExecutorResult getReplicaResult()
Gets the result of the replica that failed

Returns:
The replica result

getReplica

public ReplicaEntry getReplica()
Gets the replica

Returns:
The replica that failed

getMessage

public java.lang.String getMessage()
Gets a formatted message for this exception

Overrides:
getMessage in class OurgridException
Returns:
A formatted message for this exception

getSimpleMessage

public java.lang.String getSimpleMessage()
Description copied from class: FailCauseException
Used to acquire a simple message determining the fail cause.

Specified by:
getSimpleMessage in class FailCauseException
Returns:
String with the cause.