views:

32

answers:

1

Hi, I'm using Quartz.NET for an application I am creating, and I currently have an IJobListener listening for any errors with jobs, then sending emails off to the administrators. It'd be great if I could email the exception generated too, but how do I get the exception from the IJobListener?

A: 

The JobWasExecuted method is passed a JobExecutionException (if one was thrown during the triggering of the job).

Andrew Hare