I'm using Hangfire to fire off some background jobs, then I am checking their progress looking for failed jobs using:
IStorageConnection connection = JobStorage.Current.GetConnection();
JobData jobData = connection.GetJobData(jobId);
if (jobData.State == FailedState.StateName)
// Some how get exception details
I would like to get the Exception thrown that caused the job to fail. (I am throwing new Exception("test error") in my job currently to test it out).
I can't seem to find any docs or examples on how I can get this information, is it possible?