75 references to XmlException
System.Private.Xml (75)
System\Xml\Base64Decoder.cs (2)
147throw new XmlException(SR.Xml_InvalidBase64Value, chars.ToString()); 180throw new XmlException(SR.Xml_InvalidBase64Value, chars.ToString());
System\Xml\BinaryXml\SqlUtils.cs (5)
143throw new XmlException(SR.SqlTypes_ArithOverflow, (string?)null); 450throw new XmlException(SR.SqlTypes_ArithOverflow, (string?)null); 475throw new XmlException(SR.SqlTypes_ArithOverflow, (string?)null); 493throw new XmlException(SR.SqlTypes_ArithOverflow, (string?)null); 763throw new XmlException(SR.SqlTypes_ArithOverflow, (string?)null);
System\Xml\BinaryXml\XmlBinaryReader.cs (9)
1977throw new XmlException(SR.XmlBin_InvalidQNameID, string.Empty); 1985throw new XmlException(SR.XmlBin_InvalidQNameID, string.Empty); 2630throw new XmlException(SR.Xml_PrefixForEmptyNs, string.Empty); 2705throw new XmlException(SR.Xml_DupAttributeName, _attributes[i].name.ToString()); 2730throw new XmlException(SR.Xml_DupAttributeName, _attributes[i].name.ToString()); 3605throw new XmlException(SR.SqlTypes_ArithOverflow, (string?)null); 4017throw new XmlException(SR.XmlBin_InvalidQNameID, string.Empty); 4166throw new XmlException(SR.XmlBin_InvalidQNameID, string.Empty); 4364throw new XmlException(SR.XmlBin_InvalidQNameID, string.Empty);
System\Xml\BinHexDecoder.cs (2)
121throw new XmlException(SR.Xml_InvalidBinHexValueOddCount, new string(chars)); 165throw new XmlException(SR.Xml_InvalidBinHexValue, chars.ToString());
System\Xml\Core\QueryOutputWriter.cs (2)
155throw new XmlException(SR.Xml_NoMultipleRoots, string.Empty); 331throw new XmlException(SR.Xml_NoRoot, string.Empty);
System\Xml\Core\XmlParserContext.cs (1)
59throw new XmlException(SR.Xml_NotSameNametable, string.Empty);
System\Xml\Core\XmlReader.cs (1)
1549throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString());
System\Xml\Core\XmlReaderAsync.cs (1)
402throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString());
System\Xml\Core\XmlReaderSettings.cs (1)
400throw new XmlException(SR.Xml_ReadOnlyProperty, $"{GetType().Name}.{propertyName}");
System\Xml\Core\XmlTextReaderImpl.cs (6)
648throw new XmlException(SR.Xml_CannotResolveUrl, _laterInitParam.inputUriStr); 1518throw new XmlException(SR.Xml_InternalError, string.Empty); 1544throw new XmlException(SR.Xml_InternalError, string.Empty); 2054throw new XmlException(SR.Xml_WhitespaceHandling, string.Empty); 2090throw new XmlException(SR.Xml_EntityHandling, string.Empty); 9031throw new XmlException(SR.Xml_NametableMismatch, string.Empty);
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
81throw new XmlException(SR.Xml_CannotResolveUrl, _laterInitParam.inputUriStr);
System\Xml\Core\XmlTextReaderImplHelpers.cs (2)
755throw new XmlException(SR.Xml_DefaultException, string.Empty); 774throw new XmlException(SR.Xml_DefaultException, string.Empty);
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
985throw new XmlException(SR.Xml_InvalidNodeType, _outerReader.NodeType.ToString());
System\Xml\Core\XmlWellFormedWriter.cs (3)
506throw new XmlException(SR.Xml_NoStartTag, string.Empty); 557throw new XmlException(SR.Xml_NoStartTag, string.Empty); 1837return new XmlException(SR.Xml_DupAttributeName, attr);
System\Xml\Core\XmlWellFormedWriterAsync.cs (2)
338throw new XmlException(SR.Xml_NoStartTag, string.Empty); 417throw new XmlException(SR.Xml_NoStartTag, string.Empty);
System\Xml\Core\XmlWriter.cs (1)
327throw new XmlException(SR.Xml_InvalidPosition, string.Empty);
System\Xml\Core\XmlWriterAsync.cs (1)
248throw new XmlException(SR.Xml_InvalidPosition, string.Empty);
System\Xml\Core\XmlWriterSettings.cs (1)
494throw new XmlException(SR.Xml_ReadOnlyProperty, $"{GetType().Name}.{propertyName}");
System\Xml\Dom\DocumentXmlWriter.cs (1)
443throw new XmlException(SR.Xml_DupAttributeName, attr.Prefix.Length == 0 ? attr.LocalName : $"{attr.Prefix}:{attr.LocalName}");
System\Xml\Dom\XmlDocument.cs (1)
1392throw new XmlException(SR.Xml_InvalidXmlDocument, SR.Xdom_NoRootEle);
System\Xml\Dom\XmlLoader.cs (2)
616throw new XmlException(SR.Xml_InternalError, string.Empty); 922throw new XmlException(SR.Xml_UndeclaredParEntity, eref.Name);
System\Xml\HWStack.cs (1)
34throw new XmlException(SR.Xml_StackOverflow, string.Empty);
System\Xml\Schema\BaseValidator.cs (1)
141throw new XmlException(SR.Xml_InternalError, string.Empty);
System\Xml\Schema\DtdValidator.cs (2)
446throw new XmlException(SR.Xml_UndeclaredEntity, n); 451throw new XmlException(SR.Xml_UnparsedEntityRef, n);
System\Xml\Schema\XdrBuilder.cs (2)
464throw new XmlException(SR.Xml_UnexpectedToken, "NAME"); 1580throw new XmlException(SR.Xml_UnexpectedToken, "NAME");
System\Xml\ValidateNames.cs (10)
394return new XmlException(SR.Xml_EmptyName, string.Empty); 480if (throwOnError) throw new XmlException(SR.Xdom_Empty_LocalName, string.Empty); 498if (throwOnError) throw new XmlException(SR.Xml_InvalidPIName, localName); 507if (throwOnError) throw new XmlException(SR.XmlNoNameAllowed, nodeKind.ToString()); 527if (throwOnError) throw new XmlException(SR.Xml_PrefixForEmptyNs, string.Empty); 545if (throwOnError) throw new XmlException(SR.Xml_XmlPrefix, string.Empty); 552if (throwOnError) throw new XmlException(SR.Xml_XmlnsPrefix, string.Empty); 558if (throwOnError) throw new XmlException(SR.Xml_NamespaceDeclXmlXmlns, string.Empty); 568if (throwOnError) throw new XmlException(SR.Xml_InvalidPIName, CreateName(prefix, localName)); 577if (throwOnError) throw new XmlException(SR.XmlNoNameAllowed, nodeKind.ToString());
System\Xml\XmlConvert.cs (4)
333return new XmlException(SR.Xml_EmptyName, string.Empty); 414throw new XmlException(SR.Sch_NotTokenString, token); 431return new XmlException(SR.Sch_NotTokenString, token); 469return new XmlException(SR.Xml_EmptyName, string.Empty);
System\Xml\XmlEncoding.cs (4)
535throw new XmlException(SR.Xml_InvalidCharInThisEncoding, string.Empty); 576throw new XmlException(SR.Xml_InvalidCharInThisEncoding, string.Empty); 618throw new XmlException(SR.Xml_InvalidCharInThisEncoding, string.Empty); 660throw new XmlException(SR.Xml_InvalidCharInThisEncoding, string.Empty);
System\Xml\XmlQualifiedName.cs (1)
157throw new XmlException(SR.Xml_UnknownNs, prefix);
System\Xml\XmlResolver.FileSystemResolver.cs (2)
37throw new XmlException(SR.Xml_UnsupportedClass, string.Empty); 50throw new XmlException(SR.Xml_UnsupportedClass, string.Empty);
System\Xml\XmlUrlResolver.cs (2)
46throw new XmlException(SR.Xml_UnsupportedClass, string.Empty); 57throw new XmlException(SR.Xml_UnsupportedClass, string.Empty);