com.sun.grid.jgrid.server
Class CommandFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sun.grid.jgrid.JGridException
com.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.
- Since:
- 0.2
- See Also:
- Serialized Form
Field Summary |
private java.lang.String |
jobId
The id of the job that failed |
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 |
jobId
private java.lang.String jobId
- The id of the job that failed
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 failedmsg
- the detail message.
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