Esempio n. 1
0
        /// <summary>
        /// Handle inner exception in current backtrace report
        /// if inner exception exists, client should send report twice - one with current exception, one with inner exception
        /// </summary>
        /// <param name="report">current report</param>
        private void HandleInnerException(BacktraceReport report)
        {
            var innerExceptionReport = report.CreateInnerReport();

            if (innerExceptionReport != null && ShouldSendReport(innerExceptionReport))
            {
                SendReport(innerExceptionReport);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Handle inner exception in current backtrace report
        /// if inner exception exists, client should send report twice - one with current exception, one with inner exception
        /// </summary>
        /// <param name="report">current report</param>
        private void HandleInnerException(BacktraceReport report, Action <BacktraceResult> callback)
        {
            var innerExceptionReport = report.CreateInnerReport();

            if (innerExceptionReport != null && ShouldSendReport(innerExceptionReport))
            {
                SendReport(innerExceptionReport, callback);
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Handle inner exception in current backtrace report
        /// if inner exception exists, client should send report twice - one with current exception, one with inner exception
        /// </summary>
        /// <param name="report">current report</param>
        private IEnumerator HandleInnerException(BacktraceReport report, Action <BacktraceResult> callback)
        {
            var innerExceptionReport = report.CreateInnerReport();

            if (innerExceptionReport == null)
            {
                yield return(null);
            }
            Send(innerExceptionReport, callback);
        }
Esempio n. 4
0
        /// <summary>
        /// Handle inner exception in current backtrace report
        /// if inner exception exists, client should send report twice - one with current exception, one with inner exception
        /// </summary>
        /// <param name="report">current report</param>
        private async Task <BacktraceResult> HandleInnerExceptionAsync(BacktraceReport report)
        {
            var innerExceptionReport = report.CreateInnerReport();

            if (innerExceptionReport == null)
            {
                return(null);
            }
            return(await SendAsync(innerExceptionReport));
        }
Esempio n. 5
0
        /// <summary>
        /// Handle inner exception in current backtrace report
        /// if inner exception exists, client should send report twice - one with current exception, one with inner exception
        /// </summary>
        /// <param name="report">current report</param>
        private BacktraceResult HandleInnerException(BacktraceReport report)
        {
            //we have to create a copy of an inner exception report
            //to have the same calling assembly property
            var innerExceptionReport = report.CreateInnerReport();

            if (innerExceptionReport == null)
            {
                return(null);
            }
            return(Send(innerExceptionReport));
        }
Esempio n. 6
0
        /// <summary>
        /// Handle inner exception in current backtrace report
        /// if inner exception exists, client should send report twice - one with current exception, one with inner exception
        /// </summary>
        /// <param name="report">current report</param>
        private void HandleInnerException(BacktraceReport report)
        {
            // there is no additional exception inside current exception
            // or exception does not exists
            if (!report.ExceptionTypeReport || report.Exception.InnerException == null)
            {
                return;
            }
            //we have to create a copy of an inner exception report
            //to have the same calling assembly property
            var innerExceptionReport = report.CreateInnerReport();

            Send(innerExceptionReport);
        }