public void RuntimeError(TemplateMessage msg) { Log.Error(msg.ToString()); }
public void InternalError(TemplateMessage msg) { Log.Error(msg.ToString()); }
public void IOError(TemplateMessage msg) { this.log.Error(msg, msg.ToString()); }
public ResultError(TemplateMessage msg) { _details = msg.ToString(); var lines = _details.Replace("context [anonymous] 1:1 ", "").Split('\n'); const string searchString = "System.Exception: "; if (lines.Any() && lines[0].Contains(searchString)) _text = lines[0].Substring(lines[0].IndexOf(searchString) + searchString.Length); else if (lines.Any()) _text = lines.FirstOrDefault(); else _text = _details; }
public void CompiletimeError(TemplateMessage msg) { this.log.Error(msg, msg.ToString()); }