/// <summary> /// Report exception through codeRR /// </summary> /// <param name="httpContext">httpContext used to report exception (used to be able to collect context data)</param> /// <param name="exception">exception to report</param> /// <param name="contextData">extra context data</param> /// <returns>sent report (can be used for instance for <c>Err.LeaveFeedback</c>)</returns> public static ErrorReportDTO ReportException(this HttpContextBase httpContext, Exception exception, object contextData) { var converter = new ObjectToContextCollectionConverter(); var collection = converter.Convert(contextData); return(ErrorHttpModule.ExecutePipeline(httpContext, exception, httpContext, collection)); }
/// <summary> /// Report exception through codeRR /// </summary> /// <param name="httpContext">httpContext used to report exception (used to be able to collect context data)</param> /// <param name="exception">exception to report</param> /// <returns>sent report (can be used for instance for <c>Err.LeaveFeedback</c>)</returns> public static ErrorReportDTO ReportException(this HttpContextBase httpContext, Exception exception) { return(ErrorHttpModule.ExecutePipeline(httpContext, exception, httpContext)); }
/// <summary> /// Report exception through codeRR /// </summary> /// <param name="httpContext">httpContext used to report exception (used to be able to collect context data)</param> /// <param name="exception">exception to report</param> /// <param name="contextData">extra collections</param> /// <returns>sent report (can be used for instance for <c>Err.LeaveFeedback</c>)</returns> public static ErrorReportDTO ReportException(this HttpContextBase httpContext, Exception exception, IEnumerable <ContextCollectionDTO> contextData) { return(ErrorHttpModule.ExecutePipeline(httpContext, exception, httpContext, contextData.ToArray())); }