public void HandleErrorInvoked(object aObj, ButtplugExceptionEventArgs aEx) { if (_errorInvoked) { Assert.Fail("Multiple errors thrown without resets."); } _errorInvoked = true; _currentException = aEx.Exception; }
private void Client_ErrorReceived(object sender, ButtplugExceptionEventArgs buttplugExceptionEventArgs) { //TODO }
/******************************** * B******g Client Events ********************************/ void OnErrorReceived(object s, ButtplugExceptionEventArgs args) { _logger.LogError($"Stuff f****d up! '{0}'", args.Exception.Message); }
private void Client_ErrorReceived(object sender, ButtplugExceptionEventArgs buttplugExceptionEventArgs) { RecordButtplugException("ButtplugAdapter.Client_ErrorReceived", buttplugExceptionEventArgs.Exception); }
private void ConnectorErrorHandler(object aSender, ButtplugExceptionEventArgs aException) { ErrorReceived?.Invoke(this, aException); }
private void ClientOnErrorReceived(object sender, ButtplugExceptionEventArgs e) { MessageBox.Show($"Something went wrong: {e.Exception.Message}", "B******g Error", MessageBoxButton.OK, MessageBoxImage.Error); }