78 references to XmlException
dotnet-svcutil-lib (78)
FrameworkFork\Microsoft.Xml\Xml\Base64Decoder.cs (2)
191throw new XmlException(ResXml.Xml_InvalidBase64Value, new string(pChars, 0, (int)(pCharsEndPos - pChars))); 226throw new XmlException(ResXml.Xml_InvalidBase64Value, new string(pChars, 0, (int)(pCharsEndPos - pChars)));
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\SqlUtils.cs (12)
216throw new XmlException(ResXml.SqlTypes_ArithTruncation, (string)null); 220throw new XmlException(ResXml.SqlTypes_ArithOverflow, (string)null); 317throw new XmlException(ResXml.SqlTypes_ArithOverflow, (string)null); 323throw new XmlException(ResXml.SqlTypes_ArithOverflow, (string)null); 359throw new XmlException(ResXml.SqlTypes_ArithOverflow, (string)null); 367throw new XmlException(ResXml.SqlTypes_ArithOverflow, (string)null); 391throw new XmlException(ResXml.SqlTypes_DivideByZero, (string)null); 465throw new XmlException(ResXml.SqlTypes_ArithOverflow, (string)null); 771throw new XmlException(ResXml.SqlTypes_ArithOverflow, (string)null); 796throw new XmlException(ResXml.SqlTypes_ArithOverflow, (string)null); 814throw new XmlException(ResXml.SqlTypes_ArithOverflow, (string)null); 1076throw new XmlException(ResXml.SqlTypes_ArithOverflow, (string)null);
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (9)
1988throw new XmlException(ResXml.XmlBin_InvalidQNameID, String.Empty); 1996throw new XmlException(ResXml.XmlBin_InvalidQNameID, String.Empty); 2650throw new XmlException(ResXml.Xml_PrefixForEmptyNs, String.Empty); 2722throw new XmlException(ResXml.Xml_DupAttributeName, _attributes[i].name.ToString()); 2747throw new XmlException(ResXml.Xml_DupAttributeName, _attributes[i].name.ToString()); 3629throw new XmlException(ResXml.SqlTypes_ArithOverflow, (string)null); 4048throw new XmlException(ResXml.XmlBin_InvalidQNameID, String.Empty); 4197throw new XmlException(ResXml.XmlBin_InvalidQNameID, String.Empty); 4395throw new XmlException(ResXml.XmlBin_InvalidQNameID, String.Empty);
FrameworkFork\Microsoft.Xml\Xml\BinHexDecoder.cs (2)
166throw new XmlException(ResXml.Xml_InvalidBinHexValueOddCount, new string(chars)); 219throw new XmlException(ResXml.Xml_InvalidBinHexValue, new string(pChars, 0, (int)(pCharsEndPos - pChars)));
FrameworkFork\Microsoft.Xml\Xml\Core\QueryOutputWriter.cs (2)
154throw new XmlException(ResXml.Xml_NoMultipleRoots, string.Empty); 330throw new XmlException(ResXml.Xml_NoRoot, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlParserContext.cs (1)
61throw new XmlException(ResXml.Xml_NotSameNametable, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (1)
1688throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString());
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderAsync.cs (1)
431throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString());
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderSettings.cs (1)
552throw new XmlException(ResXml.Xml_ReadOnlyProperty, this.GetType().Name + '.' + propertyName);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (6)
667throw new XmlException(ResXml.Xml_CannotResolveUrl, _laterInitParam.inputUriStr); 1525throw new XmlException(ResXml.Xml_InternalError, string.Empty); 1551throw new XmlException(ResXml.Xml_InternalError, string.Empty); 2117throw new XmlException(ResXml.Xml_WhitespaceHandling, string.Empty); 2154throw new XmlException(ResXml.Xml_EntityHandling, string.Empty); 9151throw new XmlException(ResXml.Xml_NametableMismatch, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImplHelpers.cs (2)
761throw new XmlException(ResXml.Xml_DefaultException, string.Empty); 781throw new XmlException(ResXml.Xml_DefaultException, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlValidatingReaderImpl.cs (1)
982throw new XmlException(ResXml.Xml_InvalidNodeType, _outerReader.NodeType.ToString());
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (3)
533throw new XmlException(ResXml.Xml_NoStartTag, string.Empty); 584throw new XmlException(ResXml.Xml_NoStartTag, string.Empty); 1938return new XmlException(ResXml.Xml_DupAttributeName, sb.ToString());
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (1)
369throw new XmlException(ResXml.Xml_InvalidPosition, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriterSettings.cs (1)
679throw new XmlException(ResXml.Xml_ReadOnlyProperty, this.GetType().Name + '.' + propertyName);
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXmlWriter.cs (1)
437throw new XmlException(ResXml.Xml_DupAttributeName, attr.Prefix.Length == 0 ? attr.LocalName : string.Concat(attr.Prefix, ":", attr.LocalName));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocument.cs (1)
1335throw new XmlException(ResXml.Xml_InvalidXmlDocument, ResXml.Xdom_NoRootEle);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlLoader.cs (2)
619throw new XmlException(ResXml.Xml_InternalError, string.Empty); 926throw new XmlException(ResXml.Xml_UndeclaredParEntity, eref.Name);
FrameworkFork\Microsoft.Xml\Xml\HWStack.cs (1)
39throw new XmlException(ResXml.Xml_StackOverflow, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlSystemPathResolver.cs (2)
30throw new XmlException(ResXml.Xml_UnsupportedClass, string.Empty); 37throw new XmlException(ResXml.Xml_SystemPathResolverCannotOpenUri, uri.ToString());
FrameworkFork\Microsoft.Xml\Xml\schema\basevalidator.cs (1)
138throw new XmlException(ResXml.Xml_InternalError, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\dtdvalidator.cs (2)
447throw new XmlException(ResXml.Xml_UndeclaredEntity, n); 452throw new XmlException(ResXml.Xml_UnparsedEntityRef, n);
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (2)
469throw new XmlException(ResXml.Xml_UnexpectedToken, "NAME"); 1591throw new XmlException(ResXml.Xml_UnexpectedToken, "NAME");
FrameworkFork\Microsoft.Xml\Xml\ValidateNames.cs (11)
398throw new XmlException(ResXml.Xml_EmptyName, string.Empty); 418return new XmlException(ResXml.Xml_EmptyName, string.Empty); 518if (throwOnError) throw new XmlException(ResXml.Xdom_Empty_LocalName, string.Empty); 536if (throwOnError) throw new XmlException(ResXml.Xml_InvalidPIName, localName); 545if (throwOnError) throw new XmlException(ResXml.XmlNoNameAllowed, nodeKind.ToString()); 565if (throwOnError) throw new XmlException(ResXml.Xml_PrefixForEmptyNs, string.Empty); 583if (throwOnError) throw new XmlException(ResXml.Xml_XmlPrefix, string.Empty); 590if (throwOnError) throw new XmlException(ResXml.Xml_XmlnsPrefix, string.Empty); 596if (throwOnError) throw new XmlException(ResXml.Xml_NamespaceDeclXmlXmlns, string.Empty); 606if (throwOnError) throw new XmlException(ResXml.Xml_InvalidPIName, CreateName(prefix, localName)); 615if (throwOnError) throw new XmlException(ResXml.XmlNoNameAllowed, nodeKind.ToString());
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (4)
381return new XmlException(ResXml.Xml_EmptyName, string.Empty); 470throw new XmlException(ResXml.Sch_NotTokenString, token); 483return new XmlException(ResXml.Sch_NotTokenString, token); 522return new XmlException(ResXml.Xml_EmptyName, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\XmlEncoding.cs (4)
562throw new XmlException(ResXml.Xml_InvalidCharInThisEncoding, string.Empty); 601throw new XmlException(ResXml.Xml_InvalidCharInThisEncoding, string.Empty); 641throw new XmlException(ResXml.Xml_InvalidCharInThisEncoding, string.Empty); 681throw new XmlException(ResXml.Xml_InvalidCharInThisEncoding, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\XmlNullResolver.cs (1)
20throw new XmlException(ResXml.Xml_NullResolver, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\XmlQualifiedName.cs (1)
213throw new XmlException(ResXml.Xml_UnknownNs, prefix);