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