/// <summary>
 /// Initializes a new instance of the DdlReaderError class.
 /// </summary>
 public DdlReaderError(DdlErrorLevel errorLevel, string errorMessage, int errorNumber,
                       string sourceFile, int sourceLine, int sourceColumn)
 {
     this.ErrorLevel   = errorLevel;
     this.ErrorMessage = errorMessage;
     this.ErrorNumber  = errorNumber;
     this.SourceFile   = sourceFile;
     this.SourceLine   = sourceLine;
     this.SourceColumn = sourceColumn;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the DdlReaderError class.
 /// </summary>
 public DdlReaderError(DdlErrorLevel errorLevel, string errorMessage, int errorNumber,
   string sourceFile, int sourceLine, int sourceColumn)
 {
   this.ErrorLevel = errorLevel;
   this.ErrorMessage = errorMessage;
   this.ErrorNumber = errorNumber;
   this.SourceFile = sourceFile;
   this.SourceLine = sourceLine;
   this.SourceColumn = sourceColumn;
 }
 public DdlReaderError(DdlErrorLevel errorLevel, string errorMessage, int errorNumber)
 {
     this.ErrorLevel   = errorLevel;
     this.ErrorMessage = errorMessage;
     this.ErrorNumber  = errorNumber;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the DdlParserException class with the specified error level, name,
 /// error code and message.
 /// </summary>
 public DdlParserException(DdlErrorLevel level, string message, DomMsgID errorCode)
     : base(message)
 {
     _error = new DdlReaderError(level, message, (int)errorCode);
 }
Exemple #5
0
        /// <summary>
        /// Creates an ErrorInfo based on the given errorlevel, error and parms and adds it to the ErrorManager2.
        /// </summary>
        private void ReportParserInfo(DdlErrorLevel level, DomMsgID errorCode, params string[] parms)
        {
            string message = DomSR.FormatMessage(errorCode, parms);
            DdlReaderError error = new DdlReaderError(level, message, (int)errorCode,
              _scanner.DocumentFileName, _scanner.CurrentLine, _scanner.CurrentLinePos);

            _errors.AddError(error);
        }
 /// <summary>
 /// Initializes a new instance of the DdlParserException class with the specified error level, name,
 /// error code and message.
 /// </summary>
 public DdlParserException(DdlErrorLevel level, string message, DomMsgID errorCode)
     : base(message)
 {
     this.error = new DdlReaderError(level, message, (int)errorCode);
 }
Exemple #7
0
 public DdlReaderError(DdlErrorLevel errorLevel, string errorMessage, int errorNumber)
 {
   this.ErrorLevel = errorLevel;
   this.ErrorMessage = errorMessage;
   this.ErrorNumber = errorNumber;
 }