Example #1
0
 public void AddError(ErrorEntry err)
 {
     List<ErrorEntry> errList = null;
     if (!errors.TryGetValue (err.Type, out errList)) {
         throw new InvalidOperationException("Could not find error list for error type " + err.Type);
     }
     errList.Add(err);
 }
Example #2
0
 public void AddError(ErrorType type, string message)
 {
     var err = new ErrorEntry(type, message);
     AddError (err);
 }
Example #3
0
 public void AddError(int line, int column, ErrorType type, string message)
 {
     var err = new ErrorEntry(line, column, type, message);
     AddError (err);
 }