コード例 #1
0
 internal void AddInnerResult(BacktraceResult innerResult)
 {
     if (InnerExceptionResult == null)
     {
         InnerExceptionResult = innerResult;
         return;
     }
     InnerExceptionResult.AddInnerResult(innerResult);
 }
コード例 #2
0
        /// <summary>
        /// Set result when error occurs while sending data to API
        /// </summary>
        /// <param name="report">Executed report</param>
        /// <param name="exception">Exception</param>
        /// <returns>BacktraceResult with exception information</returns>
        internal static BacktraceResult OnError(BacktraceReport report, Exception exception)
        {
            var result = new BacktraceResult()
            {
                BacktraceReport = report,
                Message         = exception.Message,
                Status          = BacktraceResultStatus.ServerError
            };

            result.Exception = exception;
            return(result);
        }