Beispiel #1
0
        private void SafeFail(IJob job, Exception exception)
        {
            Asserts <ArgumentNullException> .IsNotNull(job);

            Log.Verbose("BatchQueue:SafeFail({0})>", job.Code);

            try
            {
                job.Fail(exception);
            }
            catch (Exception e)
            {
                Log.Error("Job {0} {1}", job.Code, e.Message);
            }
            finally
            {
                Log.Verbose("BatchQueue:SafeFail({0})<", job.Code);
            }
        }