Provides data for the IrcClient.Error event.
Inheritance: System.EventArgs
示例#1
0
 private void OnError(object sender, IrcErrorEventArgs e)
 {
     // HACK : log somewhere, console for now
     Console.WriteLine("Error occured in IRC client: {0}", e.Error.Message);
 }
示例#2
0
 /// <summary>
 /// Raises the <see cref="ConnectFailed"/> event.
 /// </summary>
 /// <param name="e">The <see cref="IrcErrorEventArgs"/> instance containing the event data.</param>
 protected virtual void OnConnectFailed(IrcErrorEventArgs e)
 {
     var handler = this.ConnectFailed;
     if (handler != null)
         handler(this, e);
 }
示例#3
0
 /// <summary>
 /// Raises the <see cref="Error"/> event.
 /// </summary>
 /// <param name="e">The <see cref="IrcErrorEventArgs"/> instance containing the event data.</param>
 protected virtual void OnError(IrcErrorEventArgs e)
 {
     var handler = this.Error;
     if (handler != null)
         handler(this, e);
 }
示例#4
0
 static void client_Error(object sender, IrcErrorEventArgs e)
 {
     Log("Client Error: " + e.Error.Message, ConsoleColor.Magenta);
 }
示例#5
0
 private void ClientOnError(object sender, IrcErrorEventArgs ircErrorEventArgs)
 {
 }
示例#6
0
 void client_Error(object sender, IrcErrorEventArgs e)
 {
     var error = ErrorOccurred;
     if (error != null)
         error(this, e);
 }
 /// <summary>
 /// This is called when IrcDotNet hits an exception.  We will reset the connection with a new
 /// IrcDotNet instance.  In practice, this should never happen.
 /// </summary>
 void m_client_ErrorOccurred(TwitchClient sender, IrcErrorEventArgs error)
 {
     m_error = true;
 }
示例#8
0
 private void Client_ConnectFailed(object sender, IrcErrorEventArgs e)
 {
     Console.WriteLine($"{serverConfig.ServerId}|CONNECT FAILED: {e.Error}");
 }
示例#9
0
 void client_ConnectFailed(object sender, IrcErrorEventArgs e)
 {
     WriteDiagnosticMessage("Connection failed: {0}", e.Error);
 }
示例#10
0
		public static void OnConnectFailed(object sender, IrcErrorEventArgs e)
		{
			throw new NotImplementedException();
		}
示例#11
0
 void Client_ConnectFailed(object sender, IrcErrorEventArgs e)
 {
 }
示例#12
0
 void client_Error(object sender, IrcErrorEventArgs e)
 {
 }
示例#13
0
 public void ircConnection_Error(object sender, IrcErrorEventArgs e)
 {
     Console.WriteLine(String.Format("IRC Error thrown: {0}", e.Error));
     LogWrite(String.Format("IRC Error thrown: {0}", e.Error));
     ActiveBot = false;
 }
示例#14
0
 public void ircConnection_ConnectFailed(object sender, IrcErrorEventArgs e)
 {
     Console.WriteLine(String.Format("IRC Error thrown: {0}", e.Error));
 }
		private void onIrcError(object sender, IrcErrorEventArgs e) {
			addIrcLogEntry("Error: " + e.Error.ToString());
		}
示例#16
0
文件: Command.cs 项目: charla-n/BIRC
 private void Client_ConnectFailed(object sender, IrcErrorEventArgs e)
 {
     connection.AddHistory(HtmlWriter.WriteError(e.Error.Message));
     Unregister();
 }