org.ourgrid.mygrid.scheduler.exception
Class KillReplicaException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ourgrid.common.exception.OurgridException
              extended by org.ourgrid.mygrid.scheduler.exception.KillReplicaException
All Implemented Interfaces:
java.io.Serializable

public class KillReplicaException
extends OurgridException

Exception to be thrown when a problem occurs while trying to kill a replica execution.

See Also:
Serialized Form

Constructor Summary
KillReplicaException(java.lang.String commandToKill)
          The constructor.
KillReplicaException(java.lang.String commandToKill, java.lang.Throwable detail)
          The constructor.
 
Method Summary
 java.lang.String getCommandToKill()
          Returns the command to be killed or a string that is present in the command line.
 java.lang.String getMessage()
          Returns the exception message.
 
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

KillReplicaException

public KillReplicaException(java.lang.String commandToKill)
The constructor.

Parameters:
commandToKill -

KillReplicaException

public KillReplicaException(java.lang.String commandToKill,
                            java.lang.Throwable detail)
The constructor.

Parameters:
commandToKill - The command or the string present in the command line
detail - The throwable that is the cause of this exception.
Method Detail

getCommandToKill

public java.lang.String getCommandToKill()
Returns the command to be killed or a string that is present in the command line.

Returns:
The command or the string present in the command line

getMessage

public java.lang.String getMessage()
Returns the exception message.

Overrides:
getMessage in class OurgridException
Returns:
The message