19 references to XmlException
System.Private.Xml (19)
System\Xml\BinaryXml\SqlUtils.cs (1)
49
_ => throw new
XmlException
(SR.XmlBinary_InvalidSqlDecimal, (string[]?)null),
System\Xml\BinaryXml\XmlBinaryReader.cs (7)
93
throw new
XmlException
(SR.XmlBinary_NoRemapPrefix, new string[] { prefix, this.namespaceUri, namespaceUri });
1956
throw new
XmlException
(SR.Xml_BadNamespaceDecl, (string[]?)null);
2324
throw new
XmlException
(SR.Xml_UnexpectedEOF1, (string[]?)null);
2580
throw new
XmlException
(err, (string[]?)null);
2838
throw new
XmlException
(SR.Xml_UnexpectedEOF1, (string[]?)null);
4403
return new
XmlException
(res, (string[]?)null);
4409
return new
XmlException
(res, new string[] { arg1, arg2 });
System\Xml\Core\XmlWellFormedWriter.cs (2)
1601
throw new
XmlException
(SR.Xml_RedefinePrefix, new string[] { prefix, _nsStack[existingNsIndex].namespaceUri, ns });
1681
throw new
XmlException
(SR.Xml_RedefinePrefix, new string?[] { prefix, _nsStack[existingNsIndex].namespaceUri, ns });
System\Xml\Dom\XmlDocument.cs (1)
210
throw new
XmlException
(SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos));
System\Xml\ValidateNames.cs (6)
381
throw new
XmlException
(SR.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar));
386
throw new
XmlException
(SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar));
401
return new
XmlException
(SR.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar));
406
return new
XmlException
(SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar));
489
if (throwOnError) throw new
XmlException
(SR.XmlBadName, new string[] { nodeKind.ToString(), localName });
536
if (throwOnError) throw new
XmlException
(SR.XmlBadName, new string[] { nodeKind.ToString(), localName });
System\Xml\XmlConvert.cs (2)
339
return new
XmlException
(endPos == 0 ? SR.Xml_BadStartNameChar : SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos));
475
return new
XmlException
(SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos));