コード例 #1
0
        public void HandleErrorInvoked(object aObj, ButtplugExceptionEventArgs aEx)
        {
            if (_errorInvoked)
            {
                Assert.Fail("Multiple errors thrown without resets.");
            }

            _errorInvoked     = true;
            _currentException = aEx.Exception;
        }
コード例 #2
0
 private void Client_ErrorReceived(object sender, ButtplugExceptionEventArgs buttplugExceptionEventArgs)
 {
     //TODO
 }
コード例 #3
0
 /********************************
 * B******g Client Events
 ********************************/
 void OnErrorReceived(object s, ButtplugExceptionEventArgs args)
 {
     _logger.LogError($"Stuff f****d up! '{0}'", args.Exception.Message);
 }
コード例 #4
0
 private void Client_ErrorReceived(object sender, ButtplugExceptionEventArgs buttplugExceptionEventArgs)
 {
     RecordButtplugException("ButtplugAdapter.Client_ErrorReceived", buttplugExceptionEventArgs.Exception);
 }
コード例 #5
0
 private void ConnectorErrorHandler(object aSender, ButtplugExceptionEventArgs aException)
 {
     ErrorReceived?.Invoke(this, aException);
 }
コード例 #6
0
 private void ClientOnErrorReceived(object sender, ButtplugExceptionEventArgs e)
 {
     MessageBox.Show($"Something went wrong: {e.Exception.Message}", "B******g Error", MessageBoxButton.OK,
                     MessageBoxImage.Error);
 }