コード例 #1
0
 public void RuntimeError(TemplateMessage msg)
 {
     Log.Error(msg.ToString());
 }
コード例 #2
0
 public void InternalError(TemplateMessage msg)
 {
     Log.Error(msg.ToString());
 }
コード例 #3
0
ファイル: StringTemplate.cs プロジェクト: whesius/allors
 public void IOError(TemplateMessage msg)
 {
     this.log.Error(msg, msg.ToString());
 }
コード例 #4
0
ファイル: ResultBase.cs プロジェクト: bjennings76/DyCE
 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;
 }
コード例 #5
0
ファイル: StringTemplate.cs プロジェクト: whesius/allors
 public void CompiletimeError(TemplateMessage msg)
 {
     this.log.Error(msg, msg.ToString());
 }