16 references to ThrowXmlException
System.Private.DataContractSerialization (16)
System\Xml\XmlExceptionHelper.cs (15)
15
ThrowXmlException
(reader, res, null);
86
ThrowXmlException
(reader, SR.XmlStartElementExpected, GetWhatWasFound(reader));
110
ThrowXmlException
(reader, SR.XmlFullStartElementExpected, GetWhatWasFound(reader));
140
ThrowXmlException
(reader, SR.XmlMaxArrayLengthExceeded, maxArrayLength.ToString(NumberFormatInfo.CurrentInfo));
146
ThrowXmlException
(reader, SR.XmlMaxArrayLengthOrMaxItemsQuotaExceeded, maxQuota.ToString(NumberFormatInfo.CurrentInfo));
152
ThrowXmlException
(reader, SR.XmlMaxBytesPerReadExceeded, maxBytesPerRead.ToString(NumberFormatInfo.CurrentInfo));
158
ThrowXmlException
(reader, SR.XmlMaxDepthExceeded, maxDepth.ToString());
164
ThrowXmlException
(reader, SR.XmlMaxStringContentLengthExceeded, maxStringContentLength.ToString(NumberFormatInfo.CurrentInfo));
170
ThrowXmlException
(reader, SR.XmlMaxNameTableCharCountExceeded, maxNameTableCharCount.ToString(NumberFormatInfo.CurrentInfo));
176
ThrowXmlException
(reader, SR.XmlBase64DataExpected, GetWhatWasFound(reader));
182
ThrowXmlException
(reader, SR.XmlUndefinedPrefix, prefix);
194
ThrowXmlException
(reader, SR.XmlInvalidXmlByte, b.ToString("X2", CultureInfo.InvariantCulture));
200
ThrowXmlException
(reader, SR.XmlUnexpectedEndOfFile, ((XmlBaseReader)reader).GetOpenElements());
289
ThrowXmlException
(reader, SR.XmlDictionaryStringIDUndefinedStatic, key.ToString(NumberFormatInfo.CurrentInfo));
295
ThrowXmlException
(reader, SR.XmlDictionaryStringIDUndefinedSession, key.ToString(NumberFormatInfo.CurrentInfo));
System\Xml\XmlUTF8TextReader.cs (1)
658
XmlExceptionHelper.
ThrowXmlException
(this, SR.InvalidLocalNameEmpty, null);