Quartz.NET - getting jobs exception using IJobListener
-
26-09-2019 - |
Question
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?
Solution
The JobWasExecuted
method is passed a JobExecutionException
(if one was thrown during the triggering of the job).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow