Esempio n. 1
0
 private void OnRaisedException(Exception e)
 {
     if (Stopping)
     {
         return;
     }
     RaisedException?.Invoke(this, new EventArgs <Exception>(e));
 }
        /// <inheritdoc />
        public override ExceptionData HandleException(IErrorDetail detail, Exception ex = null)
        {
            ExceptionData exceptionData = base.HandleException(detail, ex);

            if (ex == null)
            {
                ex = new RaisedException(exceptionData.Message);
            }
            foreach (string key in exceptionData.Keys)
            {
                ex.Data[key] = exceptionData[key];
            }

            // TODO remove return statement and implement logic to throw ex
            return(exceptionData);
            // throw ex;
        }
Esempio n. 3
0
 private void OnRaisedException(Exception e)
 {
     Stop();
     RaisedException?.Invoke(this, new EventArgs <Exception>(e));
 }
Esempio n. 4
0
 public void OnRaisedException(Exception e)
 {
     RaisedException?.Invoke(this, new EventArgs <Exception>(e));
 }
Esempio n. 5
0
 private static void RaiseException(Exception e)
 {
     RaisedException?.Invoke(null, new EventArgs <Exception>(e));
 }