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