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; }
private void OnRaisedException(Exception e) { Stop(); RaisedException?.Invoke(this, new EventArgs <Exception>(e)); }
public void OnRaisedException(Exception e) { RaisedException?.Invoke(this, new EventArgs <Exception>(e)); }
private static void RaiseException(Exception e) { RaisedException?.Invoke(null, new EventArgs <Exception>(e)); }