Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ProcessErrors() [2/2]

void System.Data.XMLDiffLoader.ProcessErrors ( DataSet ds,
XmlReader ssync )
inlinepackage

Definition at line 150 of file XMLDiffLoader.cs.

151 {
152 int depth = ssync.Depth;
153 ssync.Read();
154 while (depth < ssync.Depth)
155 {
156 DataTable table = ds.Tables.GetTable(XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI);
157 if (table == null)
158 {
159 throw ExceptionBuilder.DiffgramMissingSQL();
160 }
161 string attribute = ssync.GetAttribute("id", "urn:schemas-microsoft-com:xml-diffgram-v1");
162 DataRow dataRow = (DataRow)table.RowDiffId[attribute];
163 string attribute2 = ssync.GetAttribute("Error", "urn:schemas-microsoft-com:xml-diffgram-v1");
164 if (attribute2 != null)
165 {
167 }
168 int depth2 = ssync.Depth;
169 ssync.Read();
170 while (depth2 < ssync.Depth)
171 {
172 if (XmlNodeType.Element == ssync.NodeType)
173 {
174 DataColumn column = table.Columns[XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI];
175 string attribute3 = ssync.GetAttribute("Error", "urn:schemas-microsoft-com:xml-diffgram-v1");
176 dataRow.SetColumnError(column, attribute3);
177 }
178 ssync.Read();
179 }
180 while (ssync.NodeType == XmlNodeType.EndElement && depth < ssync.Depth)
181 {
182 ssync.Read();
183 }
184 }
185 }
static ? string DecodeName(string? name)
Definition XmlConvert.cs:55

References System.Data.DataTable.Columns, System.Xml.XmlConvert.DecodeName(), System.Xml.Dictionary, System.Data.ExceptionBuilder.DiffgramMissingSQL(), and System.Data.DataTable.RowDiffId.

Referenced by System.Data.XMLDiffLoader.LoadDiffGram(), and System.Data.XMLDiffLoader.LoadDiffGram().