Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quartz.NET - getting jobs exception using IJobListener

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?

like image 420
Chris Avatar asked Oct 13 '22 22:10

Chris


1 Answers

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

like image 107
Andrew Hare Avatar answered Oct 25 '22 04:10

Andrew Hare