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