Exemple #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);
            }
        }
Exemple #2
0
 public Error(Exception ex)
 {
     ErrorClass = ex.GetType().Name;
     Message    = ex.Message;
     Stacktrace = StackTraceLine.Build(ex);
 }
Exemple #3
0
 public Error(Exception ex, Func <IMutableStackTraceLine, IStackTraceLine> transformStacktraceLine)
 {
     ErrorClass = ex.GetType().Name;
     Message    = ex.Message;
     Stacktrace = StackTraceLine.Build(ex, transformStacktraceLine);
 }