Provides data for the IrcClient.Error event.
상속: 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
파일: IrcClient.cs 프로젝트: txdv/ircdotnet
 /// <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
파일: IrcClient.cs 프로젝트: txdv/ircdotnet
 /// <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
파일: RawIrcBot.cs 프로젝트: bremnes/IrcBot
 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
파일: IrcBot.cs 프로젝트: stauken/twitchbot
 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
파일: IrcBot.cs 프로젝트: stauken/twitchbot
 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();
 }