/// <summary>
 /// Initializes a new instance of the DdlParserException class with the DdlReaderError.
 /// </summary>
 public DdlParserException(DdlReaderError error)
     : base(error.ErrorMessage)
 {
     this.error = error;
 }
 /// <summary>
 /// Adds the specified DdlReaderError at the end of the error list.
 /// </summary>
 public void AddError(DdlReaderError error)
 {
     this.errors.Add(error);
 }