Ejemplo n.º 1
0
 public void RuntimeError(TemplateMessage msg)
 {
     Log.Error(msg.ToString());
 }
Ejemplo n.º 2
0
 public void InternalError(TemplateMessage msg)
 {
     Log.Error(msg.ToString());
 }
Ejemplo n.º 3
0
 public void IOError(TemplateMessage msg)
 {
     this.log.Error(msg, msg.ToString());
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
 public void CompiletimeError(TemplateMessage msg)
 {
     this.log.Error(msg, msg.ToString());
 }