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); }
public void AddError(ErrorType type, string message) { var err = new ErrorEntry(type, message); AddError (err); }
public void AddError(int line, int column, ErrorType type, string message) { var err = new ErrorEntry(line, column, type, message); AddError (err); }