add the exception type to store it in the job error.