/// <summary> /// Reads and transforms the given stack trace into a manageable and ordered /// set of ErrorItem instances. The resulting set is stored into Items property. /// </summary> /// <param name="stackTrace">A string value that should contain a .Net stack trace.</param> public void Parse(string stackTrace) { DefaultTextManager lines; RawError rawError; _items.Clear(); lines = new DefaultTextManager(); lines.Text = stackTrace; foreach (string line in lines) { rawError = new RawError(line); if (!_functionParsers.TryParse(this, rawError)) { continue; } _pathParsers.TryParse(this, rawError); _lineNumberParsers.TryParse(this, rawError); _items.Add(rawError.ToErrorItem()); } return; }
public void SetUp() { _textBlocks = new DefaultTextManager(); }
/// <summary> /// Reads and transforms the given stack trace into a manageable and ordered /// set of ErrorItem instances. The resulting set is stored into Items property. /// </summary> /// <param name="stackTrace">A string value that should contain a .Net stack trace.</param> public void Parse(string stackTrace) { DefaultTextManager lines; RawError rawError; _items.Clear(); lines = new DefaultTextManager(); lines.Text = stackTrace; foreach (string line in lines) { rawError = new RawError(line); if (!_functionParsers.TryParse(this, rawError)) continue; _pathParsers.TryParse(this, rawError); _lineNumberParsers.TryParse(this, rawError); _items.Add(rawError.ToErrorItem()); } return; }