Exemplo n.º 1
0
        /// <summary>
        /// This Initializes a new instance of <see cref="WatsonErrorReport"/> that must be disposed.
        /// </summary>
        /// <param name="exceptionInfo">Exception info describing this error</param>
        /// <returns>New error report instance</returns>
        internal static WatsonErrorReport CreateNonFatalReport(ExceptionInfo exceptionInfo)
        {
            var report = new WatsonErrorReport();

            report._exceptionInfo = exceptionInfo;

            return(report);
        }
Exemplo n.º 2
0
        /// <summary>
        /// This Initializes a new instance of <see cref="WatsonErrorReport"/> that must be disposed.
        /// </summary>
        /// <param name="exceptionInfo">Exception info describing this error</param>
        /// <returns>New error report instance</returns>
        internal static WatsonErrorReport CreateNonFatalReport(ExceptionInfo exceptionInfo)
        {
            var report = new WatsonErrorReport();

            report._exceptionInfo = exceptionInfo;

            return report;
        }