/// <summary> /// Report error in html render process. /// </summary> /// <param name="type">the type of error to report</param> /// <param name="message">the error message</param> /// <param name="exception">optional: the exception that occured</param> internal void ReportError(HtmlRenderErrorType type, string message, Exception exception = null) { try { if (RenderError != null) { RenderError(this, new HtmlRenderErrorEventArgs(type, message, exception)); } } catch {} }
/// <summary> /// Report error in html render process. /// </summary> /// <param name="type">the type of error to report</param> /// <param name="message">the error message</param> /// <param name="exception">optional: the exception that occured</param> internal void ReportError(HtmlRenderErrorType type, string message, Exception exception = null) { try { EventHandler <HtmlRenderErrorEventArgs> handler = this.RenderError; if (handler != null) { handler(this, new HtmlRenderErrorEventArgs(type, message, exception)); } } catch { } }
/// <summary> /// Init. /// </summary> /// <param name="type">the type of error to report</param> /// <param name="message">the error message</param> /// <param name="exception">optional: the exception that occurred</param> public HtmlRenderErrorEventArgs(HtmlRenderErrorType type, string message, Exception exception = null) { _type = type; _message = message; _exception = exception; }
/// <summary> /// Report error in html render process. /// </summary> /// <param name="type">the type of error to report</param> /// <param name="message">the error message</param> /// <param name="exception">optional: the exception that occured</param> internal void ReportError(HtmlRenderErrorType type, string message, Exception exception = null) { try { EventHandler<HtmlRenderErrorEventArgs> handler = RenderError; if (handler != null) handler(this, new HtmlRenderErrorEventArgs(type, message, exception)); } catch { } }
/// <summary> /// Report error in html render process. /// </summary> /// <param name="type">the type of error to report</param> /// <param name="message">the error message</param> /// <param name="exception">optional: the exception that occured</param> internal void ReportError(HtmlRenderErrorType type, string message, Exception exception = null) { try { if (RenderError != null) { RenderError(this, new HtmlRenderErrorEventArgs(type, message, exception)); } } catch { } }