/// <summary> Add a new error which occurred during parsing to this MARC record object </summary> /// <param name="Error_Type"> Type of this error </param> public void Add_Error(MARC_Record_Parsing_Error_Type_Enum Error_Type) { // Ensure the list is built if (errors == null) { errors = new List <MARC_Record_Parsing_Error>(); } // Build this error object MARC_Record_Parsing_Error Error = new MARC_Record_Parsing_Error(Error_Type); // If no other error of the same type exists, add this if (!errors.Contains(Error)) { errors.Add(Error); } }
/// <summary> Add a new error which occurred during parsing to this MARC record object </summary> /// <param name="Error_Type"> Type of this error </param> public void Add_Error(MARC_Record_Parsing_Error_Type_Enum Error_Type) { // Ensure the list is built if (errors == null) errors = new List<MARC_Record_Parsing_Error>(); // Build this error object MARC_Record_Parsing_Error Error = new MARC_Record_Parsing_Error(Error_Type); // If no other error of the same type exists, add this if (!errors.Contains(Error)) errors.Add(Error); }
/// <summary> Constructor for a new instance of the MARC_Record_Parsing_Error class </summary> /// <param name="Error_Type"> Type of this error </param> public MARC_Record_Parsing_Error(MARC_Record_Parsing_Error_Type_Enum Error_Type) { this.Error_Type = Error_Type; Error_Details = String.Empty; }
/// <summary> Constructor for a new instance of the MARC_Record_Parsing_Error class </summary> /// <param name="Error_Type"> Type of this error </param> /// <param name="Error_Details"> Any additional information about an error </param> public MARC_Record_Parsing_Error(MARC_Record_Parsing_Error_Type_Enum Error_Type, string Error_Details) { this.Error_Type = Error_Type; this.Error_Details = Error_Details; }