com.virtuosotechnologies.lib.asyncjob
Class AsyncJobFailedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.virtuosotechnologies.lib.asyncjob.AsyncJobEvent
          extended bycom.virtuosotechnologies.lib.asyncjob.AsyncJobFailedEvent
All Implemented Interfaces:
Serializable

public class AsyncJobFailedEvent
extends AsyncJobEvent

An event sent to a listener when a job has failed

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AsyncJobFailedEvent(AsyncJobExecution execution, AsyncJobException exception)
          Constructor for events broadcast by the AsyncJobExecution.
AsyncJobFailedEvent(AsyncJobRunner runner, AsyncJob job, AsyncJobException exception)
          Constructor for events broadcast by the AsyncJobRunner.
 
Method Summary
 AsyncJobException getException()
          Get the exception thrown
 
Methods inherited from class com.virtuosotechnologies.lib.asyncjob.AsyncJobEvent
getAsyncJob, getAsyncJobExecution, getAsyncJobRunner
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsyncJobFailedEvent

public AsyncJobFailedEvent(AsyncJobRunner runner,
                           AsyncJob job,
                           AsyncJobException exception)
Constructor for events broadcast by the AsyncJobRunner.

Parameters:
runner - AsyncJobRunner broadcasting the event
job - AsyncJob being run
exception - AsyncJobException thrown

AsyncJobFailedEvent

public AsyncJobFailedEvent(AsyncJobExecution execution,
                           AsyncJobException exception)
Constructor for events broadcast by the AsyncJobExecution.

Parameters:
execution - AsyncJobExecution broadcasting the event
exception - AsyncJobException thrown
Method Detail

getException

public final AsyncJobException getException()
Get the exception thrown

Returns:
the exception thrown