private static void omegle_WebException(object sender, WebExceptionEventArgs e) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Exception met: {0}", e.Exception.ToString()); Console.ResetColor(); Console.WriteLine("Restarting.."); //Console.ReadKey(); return; }
private void Stranger2_WebException(object sender, WebExceptionEventArgs e) { ChatBrowser.PrintMessage("OmegleMTM", "Stranger2 WebException", System.Drawing.Color.DarkGreen); Console.Write(e.Exception.ToString()); }
/// <summary> /// Handles the WebException event of the omegle class. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="dotOmegle.WebExceptionEventArgs"/> instance containing the event data.</param> private void omegle_WebException(object sender, WebExceptionEventArgs e) { WriteText(e.Exception.Status + ": " + e.Exception.Message, Color.Red); }
/// <summary> /// Handles the WebException event of the omegle class. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="dotOmegle.WebExceptionEventArgs"/> instance containing the event data.</param> private void omegle_WebException(object sender, WebExceptionEventArgs e) { WriteText("Exception: " + e.Exception.ToString(), Color.Red); }