Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }