com.sun.slamd.job
Class AlreadyRunningException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sun.slamd.common.SLAMDException
              extended by com.sun.slamd.job.AlreadyRunningException
All Implemented Interfaces:
java.io.Serializable

public class AlreadyRunningException
extends SLAMDException

This class defines an exception that may be thrown if an attempt is made to start a job thread that is already running.

Author:
Neil A. Wilson
See Also:
Serialized Form

Constructor Summary
AlreadyRunningException(java.lang.String message)
          Creates a new exception that may be thrown if an attempt is made to start a job thread that is already running.
AlreadyRunningException(java.lang.String message, java.lang.Exception parentException)
          Creates a new exception that may be thrown if an attempt is made to start a job thread that is already running.
 
Method Summary
 java.lang.Exception getParentException()
          Retrieves the parent exception that triggered this already running exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlreadyRunningException

public AlreadyRunningException(java.lang.String message)
Creates a new exception that may be thrown if an attempt is made to start a job thread that is already running.

Parameters:
message - A message providing information about the exception.

AlreadyRunningException

public AlreadyRunningException(java.lang.String message,
                               java.lang.Exception parentException)
Creates a new exception that may be thrown if an attempt is made to start a job thread that is already running.

Parameters:
message - A message providing information about the exception.
parentException - The exception that triggered this exception.
Method Detail

getParentException

public java.lang.Exception getParentException()
Retrieves the parent exception that triggered this already running exception.

Overrides:
getParentException in class SLAMDException
Returns:
The parent exception that triggered this already running exception, or null if no parent exception is available.