static void r_ReadException(object sender, ReaderExceptionEventArgs e) { Console.WriteLine("Error: " + e.ReaderException.Message); }
static void ReadExceptionHandler(Object sender, ReaderExceptionEventArgs e) { Console.WriteLine("Reader threw an exception: " + e.ReaderException.Message); Console.WriteLine(e.ReaderException.ToString()); }
static void r_ReadException(object sender, ReaderExceptionEventArgs e) { Reader r = (Reader)sender; Console.WriteLine("Exception reader uri {0}",(string)r.ParamGet("/reader/uri")); Console.WriteLine("Error: " + e.ReaderException.Message); }
private void ReadException(Object sender, ReaderExceptionEventArgs e) { if (-1 != e.ReaderException.Message.IndexOf("DEBUG")) { logger.Info("ReadException listener: " + e.ReaderException.Message); return; } logger.Error("ReadException listener: " + e.ReaderException.ToString()); if (-1 != e.ReaderException.Message.IndexOf("temperature")) { this.BeginInvoke(new OverTemperatureChange(ShowOverTemperature)); } else { SetDebug(e.ReaderException.Message); logger.Debug("Calling StopReads in ReadException listener..."); StopReads(); logger.Debug("StopReads completed in ReadException listener"); } }