org.exist.scheduler
Class JobException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.exist.scheduler.JobException
All Implemented Interfaces:
Serializable

public class JobException
extends Exception

Exception class can be thrown by implementations of org.exist.scheduler.Job Also provides a mechanism for cleaning up a job after failed execution

Author:
Adam Retter
See Also:
Serialized Form

Field Summary
static int JOB_ABORT
           
static int JOB_ABORT_ALL
           
static int JOB_ABORT_THIS
           
static int JOB_REFIRE
           
 
Constructor Summary
JobException(int action, String message)
           
 
Method Summary
 void cleanupJob()
          Should be called after this exception is caught it cleans up the job, with regards to the scheduler Jobs may be removed, refired immediately or left for their next execution
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JOB_ABORT

public static final int JOB_ABORT
See Also:
Constant Field Values

JOB_ABORT_THIS

public static final int JOB_ABORT_THIS
See Also:
Constant Field Values

JOB_ABORT_ALL

public static final int JOB_ABORT_ALL
See Also:
Constant Field Values

JOB_REFIRE

public static final int JOB_REFIRE
See Also:
Constant Field Values
Constructor Detail

JobException

public JobException(int action,
                    String message)
Method Detail

cleanupJob

public void cleanupJob()
                throws JobExecutionException
Should be called after this exception is caught it cleans up the job, with regards to the scheduler Jobs may be removed, refired immediately or left for their next execution

Throws:
JobExecutionException


Copyright (C) Wolfgang Meier. All rights reserved.