public void WriteError(ErrorType errorType, string columnAddress, string val, MLString message) { ErrorRecord record = new ErrorRecord(columnAddress, val, message); record.ErrorType = errorType; if (errorType == ErrorType.Critical) { m_CriticalErrors.Add(record); } else if (errorType == ErrorType.NonCritical) { m_Errors.Add(record); } }
public void WriteError( ErrorType errorType, int row, int column, string val, string message ) { ErrorRecord record = new ErrorRecord(row, column, val, new MLString(message)); record.ErrorType = errorType; if (errorType == ErrorType.Critical) { m_CriticalErrors.Add(record); } else if (errorType == ErrorType.NonCritical) { m_Errors.Add(record); } }