com.virtuosotechnologies.lib.asyncjob
Class AsyncJobFailedEvent
java.lang.Object
java.util.EventObject
com.virtuosotechnologies.lib.asyncjob.AsyncJobEvent
com.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
AsyncJobFailedEvent
public AsyncJobFailedEvent(AsyncJobRunner runner,
AsyncJob job,
AsyncJobException exception)
- Constructor for events broadcast by the AsyncJobRunner.
- Parameters:
runner
- AsyncJobRunner broadcasting the eventjob
- AsyncJob being runexception
- AsyncJobException thrown
AsyncJobFailedEvent
public AsyncJobFailedEvent(AsyncJobExecution execution,
AsyncJobException exception)
- Constructor for events broadcast by the AsyncJobExecution.
- Parameters:
execution
- AsyncJobExecution broadcasting the eventexception
- AsyncJobException thrown
getException
public final AsyncJobException getException()
- Get the exception thrown
- Returns:
- the exception thrown