예제 #1
0
 public JobException AddException(Exception err)
 {
     var item = new JobException
     {
         ExceptionDateTimeUtc = DateTime.UtcNow,
         ExceptionMessage = err.Message,
         ExceptionDetail = err.ToString()
     };
     this.ExceptionList.Add(item);
     return item;
 }
예제 #2
0
        public JobException AddException(Exception err)
        {
            var item = new JobException
            {
                ExceptionDateTimeUtc = DateTime.UtcNow,
                ExceptionMessage     = err.Message,
                ExceptionDetail      = err.ToString()
            };

            this.ExceptionList.Add(item);
            return(item);
        }