org.ourgrid.mygrid.scheduler.exception
Class JobNotFoundException

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

public class JobNotFoundException
extends OurgridException

Exception to be thrown when a job is not found.

See Also:
Serialized Form

Constructor Summary
JobNotFoundException(int job)
          The constructor.
JobNotFoundException(int job, java.lang.Throwable detail)
          The constructor.
 
Method Summary
 int getJob()
          Returns the job identification.
 java.lang.String getMessage()
          Returns the message of this exception
 
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

JobNotFoundException

public JobNotFoundException(int job,
                            java.lang.Throwable detail)
The constructor.

Parameters:
job - The job identification
detail - The cause of this exception

JobNotFoundException

public JobNotFoundException(int job)
The constructor.

Parameters:
job - The job identification
Method Detail

getJob

public int getJob()
Returns the job identification.

Returns:
The job identification

getMessage

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

Overrides:
getMessage in class OurgridException
Returns:
The message