com.sun.grid.jgrid.server
Class CommandFailedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sun.grid.jgrid.JGridException
              extended bycom.sun.grid.jgrid.server.CommandFailedException
All Implemented Interfaces:
java.io.Serializable

public class CommandFailedException
extends JGridException

This exception signals that a requested command (suspend, resume, cancel, checkpoint, submit, or shutdown) on the JCEPListener (i.e. JCEPHandler) has failed.

See Also:
Serialized Form

Field Summary
private  java.lang.String jobId
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
CommandFailedException()
          Creates a new instance of CommandFailedException without detail message.
CommandFailedException(java.lang.String jobId, java.lang.String msg)
          Constructs an instance of CommandFailedException with the specified detail message.
 
Method Summary
 java.lang.String getMessage()
          Returns a message describing why the command failed.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jobId

private java.lang.String jobId
Constructor Detail

CommandFailedException

public CommandFailedException()
Creates a new instance of CommandFailedException without detail message.


CommandFailedException

public CommandFailedException(java.lang.String jobId,
                              java.lang.String msg)
Constructs an instance of CommandFailedException with the specified detail message.

Parameters:
jobId - the id of the job for which the command failed
msg - the detail message.
Method Detail

getMessage

public java.lang.String getMessage()
Returns a message describing why the command failed.

Returns:
A message that consists of the job id followed by the reason why the command failed