示例#1
0
        public void AddContext(string memberName, string sourceFilePath, int sourceLineNumber)
        {
            Context = memberName;

            foreach (var error in Errors.Where(error => !error.Stacktrace.Any()))
            {
                error.Stacktrace = StackTraceLine.Build(memberName, sourceFilePath, sourceLineNumber);
            }
        }
示例#2
0
 public Error(Exception ex)
 {
     ErrorClass = ex.GetType().Name;
     Message    = ex.Message;
     Stacktrace = StackTraceLine.Build(ex);
 }
示例#3
0
 public Error(Exception ex, Func <IMutableStackTraceLine, IStackTraceLine> transformStacktraceLine)
 {
     ErrorClass = ex.GetType().Name;
     Message    = ex.Message;
     Stacktrace = StackTraceLine.Build(ex, transformStacktraceLine);
 }