373 instantiations of XmlException
dotnet-svcutil-lib (373)
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 (13)
74default: throw new XmlException(ResXml.XmlBinary_InvalidSqlDecimal, (string[])null); 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 (44)
96throw new XmlException(ResXml.XmlBinary_NoRemapPrefix, new String[] { prefix, this.namespaceUri, namespaceUri }); 980throw new XmlException(e.Message, e); 1141throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Boolean", e, null); 1145throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Boolean", e, null); 1231throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "DateTime", e, null); 1235throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "DateTime", e, null); 1239throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "DateTime", e, null); 1326throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Double", e, null); 1330throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Double", e, null); 1334throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Double", e, null); 1421throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Float", e, null); 1425throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Float", e, null); 1429throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Float", e, null); 1516throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Decimal", e, null); 1520throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Decimal", e, null); 1524throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Decimal", e, null); 1611throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Int32", e, null); 1615throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Int32", e, null); 1619throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Int32", e, null); 1706throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Int64", e, null); 1710throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Int64", e, null); 1714throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Int64", e, null); 1746throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Object", e, null); 1750throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Object", e, null); 1754throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Object", e, null); 1793throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, null); 1797throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, null); 1801throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, null); 1967throw new XmlException(ResXml.Xml_BadNamespaceDecl, (string[])null); 1988throw new XmlException(ResXml.XmlBin_InvalidQNameID, String.Empty); 1996throw new XmlException(ResXml.XmlBin_InvalidQNameID, String.Empty); 2337throw new XmlException(ResXml.Xml_UnexpectedEOF1, (string[])null); 2600throw new XmlException(err, (string[])null); 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()); 2810throw new XmlException(ResXml.XmlBin_MissingEndCDATA); 2859throw new XmlException(ResXml.Xml_UnexpectedEOF1, (string[])null); 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); 4488return new XmlException(res, (string[])null); 4500return new XmlException(res, new string[] { arg1, arg2 });
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\ReadContentAsBinaryHelper.cs (3)
301throw new XmlException(ResXml.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 348throw new XmlException(ResXml.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 460throw new XmlException(ResXml.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\ReadContentAsBinaryHelperAsync.cs (3)
251throw new XmlException(ResXml.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 291throw new XmlException(ResXml.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 377throw new XmlException(ResXml.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReader.cs (2)
619throw new XmlException(res, arg, (IXmlLineInfo)null); 625throw new XmlException(res, args, (IXmlLineInfo)null);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlParserContext.cs (1)
61throw new XmlException(ResXml.Xml_NotSameNametable, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (28)
235throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Boolean", e, this as IXmlLineInfo); 253throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "DateTime", e, this as IXmlLineInfo); 271throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "DateTimeOffset", e, this as IXmlLineInfo); 289throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Double", e, this as IXmlLineInfo); 307throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Float", e, this as IXmlLineInfo); 325throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Decimal", e, this as IXmlLineInfo); 343throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Int", e, this as IXmlLineInfo); 361throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Long", e, this as IXmlLineInfo); 398throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 402throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 841throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 851throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 859throw new XmlException(ResXml.Xml_ElementNotFound, name, this as IXmlLineInfo); 869throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 877throw new XmlException(ResXml.Xml_ElementNotFoundNs, new string[2] { localname, ns }, this as IXmlLineInfo); 889throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 897throw new XmlException(ResXml.Xml_UnexpectedNodeInSimpleContent, new string[] { this.NodeType.ToString(), "ReadElementString" }, this as IXmlLineInfo); 916throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 920throw new XmlException(ResXml.Xml_ElementNotFound, name, this as IXmlLineInfo); 929throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 948throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 952throw new XmlException(ResXml.Xml_ElementNotFoundNs, new string[2] { localname, ns }, this as IXmlLineInfo); 961throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 977throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 1558throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 1562throw new XmlException(ResXml.Xml_ElementNotFoundNs, new string[2] { localName, namespaceURI }, this as IXmlLineInfo); 1679throw new XmlException(ResXml.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo); 1688throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString());
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderAsync.cs (4)
77throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 81throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 422throw new XmlException(ResXml.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo); 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\XmlSubtreeReader.cs (4)
925throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1060throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1372throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1401throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReaderAsync.cs (4)
342throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 477throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 576throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 605throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (18)
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); 2749Throw(new XmlException(res, string.Empty, lineNo, linePos, _ps.baseUriStr)); 2754Throw(new XmlException(res, arg, _ps.LineNo, _ps.LinePos, _ps.baseUriStr)); 2759Throw(new XmlException(res, arg, lineNo, linePos, _ps.baseUriStr)); 2764Throw(new XmlException(res, args, _ps.LineNo, _ps.LinePos, _ps.baseUriStr)); 2774Throw(new XmlException(res, args, innerException, _ps.LineNo, _ps.LinePos, _ps.baseUriStr)); 2790Throw(new XmlException(e.Message, (Exception)null, lineNo, linePos, _ps.baseUriStr)); 2795Throw(new XmlException(res, string.Empty, _ps.baseUriStr)); 2800Throw(new XmlException(res, arg, _ps.baseUriStr)); 2805Throw(new XmlException(res, args, innerException, 0, 0, _ps.baseUriStr)); 8073Throw(new XmlException(entityName == null ? ResXml.Xml_ErrorOpeningExternalDtd : ResXml.Xml_ErrorOpeningExternalEntity, new string[] { uri.ToString(), innerMessage }, e, 0, 0)); 9133throw new XmlException(ResXml.Xml_NametableMismatch); 9151throw new XmlException(ResXml.Xml_NametableMismatch, string.Empty); 9581throw new XmlException(ResXml.Xml_InvalidNodeType, _curNode.type.ToString(), this as IXmlLineInfo);
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 (5)
533throw new XmlException(ResXml.Xml_NoStartTag, string.Empty); 584throw new XmlException(ResXml.Xml_NoStartTag, string.Empty); 1701throw new XmlException(ResXml.Xml_RedefinePrefix, new string[] { prefix, _nsStack[existingNsIndex].namespaceUri, ns }); 1781throw new XmlException(ResXml.Xml_RedefinePrefix, new string[] { prefix, _nsStack[existingNsIndex].namespaceUri, ns }); 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\Core\XsdValidatingReader.cs (56)
466throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Boolean", e, this as IXmlLineInfo); 470throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Boolean", e, this as IXmlLineInfo); 474throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Boolean", e, this as IXmlLineInfo); 499throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "DateTime", e, this as IXmlLineInfo); 503throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "DateTime", e, this as IXmlLineInfo); 507throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "DateTime", e, this as IXmlLineInfo); 532throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Double", e, this as IXmlLineInfo); 536throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Double", e, this as IXmlLineInfo); 540throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Double", e, this as IXmlLineInfo); 565throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Float", e, this as IXmlLineInfo); 569throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Float", e, this as IXmlLineInfo); 573throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Float", e, this as IXmlLineInfo); 598throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Decimal", e, this as IXmlLineInfo); 602throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Decimal", e, this as IXmlLineInfo); 606throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Decimal", e, this as IXmlLineInfo); 631throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Int", e, this as IXmlLineInfo); 635throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Int", e, this as IXmlLineInfo); 639throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Int", e, this as IXmlLineInfo); 664throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Long", e, this as IXmlLineInfo); 668throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Long", e, this as IXmlLineInfo); 672throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Long", e, this as IXmlLineInfo); 697throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "String", e, this as IXmlLineInfo); 701throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "String", e, this as IXmlLineInfo); 705throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "String", e, this as IXmlLineInfo); 739throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 743throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 747throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 785throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Boolean", e, this as IXmlLineInfo); 789throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Boolean", e, this as IXmlLineInfo); 793throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Boolean", e, this as IXmlLineInfo); 820throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "DateTime", e, this as IXmlLineInfo); 824throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "DateTime", e, this as IXmlLineInfo); 828throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "DateTime", e, this as IXmlLineInfo); 855throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Double", e, this as IXmlLineInfo); 859throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Double", e, this as IXmlLineInfo); 863throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Double", e, this as IXmlLineInfo); 890throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Float", e, this as IXmlLineInfo); 894throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Float", e, this as IXmlLineInfo); 898throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Float", e, this as IXmlLineInfo); 925throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Decimal", e, this as IXmlLineInfo); 929throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Decimal", e, this as IXmlLineInfo); 933throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Decimal", e, this as IXmlLineInfo); 960throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Int", e, this as IXmlLineInfo); 964throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Int", e, this as IXmlLineInfo); 968throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Int", e, this as IXmlLineInfo); 995throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Long", e, this as IXmlLineInfo); 999throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Long", e, this as IXmlLineInfo); 1003throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Long", e, this as IXmlLineInfo); 1030throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "String", e, this as IXmlLineInfo); 1034throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "String", e, this as IXmlLineInfo); 1038throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "String", e, this as IXmlLineInfo); 1072throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 1076throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 1080throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 2368throw new XmlException(ResXml.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo); 2377throw new XmlException(ResXml.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (14)
66throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "String", e, this as IXmlLineInfo); 70throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "String", e, this as IXmlLineInfo); 74throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "String", e, this as IXmlLineInfo); 111throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 115throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 119throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 161throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "String", e, this as IXmlLineInfo); 165throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "String", e, this as IXmlLineInfo); 169throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "String", e, this as IXmlLineInfo); 207throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 211throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 215throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 796throw new XmlException(ResXml.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo); 808throw new XmlException(ResXml.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo);
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 (2)
134throw new XmlException(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos)); 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\XmlPreloadedResolver.cs (3)
36throw new XmlException(ResXml.Xml_UnsupportedClass); 238throw new XmlException(string.Format(ResXml.Xml_CannotResolveUrl, absoluteUri.ToString())); 251throw new XmlException(ResXml.Xml_UnsupportedClass);
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolverAsync.cs (2)
35throw new XmlException(string.Format(ResXml.Xml_CannotResolveUrl, absoluteUri.ToString())); 48throw new XmlException(ResXml.Xml_UnsupportedClass);
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlSystemPathResolver.cs (3)
30throw new XmlException(ResXml.Xml_UnsupportedClass, string.Empty); 37throw new XmlException(ResXml.Xml_SystemPathResolverCannotOpenUri, uri.ToString()); 48throw new XmlException(ResXml.Xml_SystemPathResolverCannotOpenUri, uri.ToString(), e, null);
FrameworkFork\Microsoft.Xml\Xml\schema\basevalidator.cs (1)
138throw new XmlException(ResXml.Xml_InternalError, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (3)
3539_readerAdapter.Throw(new XmlException(res, arg, (int)LineNo, (int)LinePos, baseUri == null ? null : baseUri.ToString())); 3545_readerAdapter.Throw(new XmlException(res, args, (int)LineNo, (int)LinePos, baseUri == null ? null : baseUri.ToString())); 3551_readerAdapter.Throw(new XmlException(res, arg, (int)lineNo, (int)linePos, baseUri == null ? null : baseUri.ToString()));
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\schema\xdrvalidator.cs (1)
394throw new XmlException(ResXml.Xml_MultipleValidaitonTypes, string.Empty, this.PositionInfo.LineNumber, this.PositionInfo.LinePosition);
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (1)
651throw new XmlException(ResXml.Xml_MultipleValidaitonTypes, string.Empty, this.PositionInfo.LineNumber, this.PositionInfo.LinePosition);
FrameworkFork\Microsoft.Xml\Xml\ValidateNames.cs (17)
398throw new XmlException(ResXml.Xml_EmptyName, string.Empty); 405throw new XmlException(ResXml.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar)); 410throw new XmlException(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar)); 418return new XmlException(ResXml.Xml_EmptyName, string.Empty); 425return new XmlException(ResXml.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar)); 430return new XmlException(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar)); 518if (throwOnError) throw new XmlException(ResXml.Xdom_Empty_LocalName, string.Empty); 527if (throwOnError) throw new XmlException(ResXml.XmlBadName, new string[] { nodeKind.ToString(), localName }); 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); 574if (throwOnError) throw new XmlException(ResXml.XmlBadName, new string[] { nodeKind.ToString(), localName }); 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 (10)
381return new XmlException(ResXml.Xml_EmptyName, string.Empty); 387return new XmlException(endPos == 0 ? ResXml.Xml_BadStartNameChar : ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos)); 470throw new XmlException(ResXml.Sch_NotTokenString, token); 483return new XmlException(ResXml.Sch_NotTokenString, token); 522return new XmlException(ResXml.Xml_EmptyName, string.Empty); 527return new XmlException(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos)); 595throw new XmlException(ResXml.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(content, pos), 0, pos + 1); 1771return new XmlException(res, string.Empty, lineNo, linePos); 1788return new XmlException(res, arg, lineNo, linePos); 1805return new XmlException(res, args, lineNo, linePos);
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);
FrameworkFork\Microsoft.Xml\Xml\XmlXapResolver.cs (1)
29throw new XmlException(ResXml.Xml_XapResolverCannotOpenUri, absoluteUri.ToString(), default(Exception), null);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExtensionDataReader.cs (3)
159throw new XmlException(SRSerialization.InvalidXmlDeserializingExtensionData); 254throw new XmlException(SRSerialization.InvalidXmlDeserializingExtensionData); 328throw new XmlException(SRSerialization.InvalidXmlDeserializingExtensionData);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (2)
223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(XmlObjectSerializer.TryAddLineInfo(this, string.Format(SRSerialization.XmlInvalidConversion, value, type)))); 228throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRSerialization.XmlStartElementExpected, "EndElement")));
FrameworkFork\System.Runtime.Serialization\System\Xml\EncodingStreamWrapper.cs (23)
105throw new XmlException(SRSerialization.XmlDeclarationRequired); 111throw new XmlException(SRSerialization.XmlInvalidBytes, ex); 136throw new XmlException(SRSerialization.XmlEncodingNotSupported); 154throw new XmlException(SRSerialization.XmlEncodingNotSupported); 172throw new XmlException(SRSerialization.XmlEncodingNotSupported); 187throw new XmlException(SRSerialization.XmlEncodingNotSupported); 225throw new XmlException(SRSerialization.UnexpectedEndOfFile); 279throw new XmlException(SRSerialization.XmlDeclMissing); 287throw new XmlException(SRSerialization.XmlDeclMissing); 294throw new XmlException(SRSerialization.XmlBadBOM); 379throw new XmlException(SRSerialization.XmlDeclarationRequired); 384throw new XmlException(SRSerialization.XmlMalformedDecl); 393throw new XmlException(SRSerialization.XmlDeclarationRequired); 402throw new XmlException(SRSerialization.XmlMalformedDecl); 409throw new XmlException(SRSerialization.XmlMalformedDecl); 473throw new XmlException(SRSerialization.UnexpectedEndOfFile); 523throw new XmlException(SRSerialization.XmlDeclarationRequired); 531throw new XmlException(SRSerialization.XmlInvalidBytes, e); 537throw new XmlException(string.Format(SRSerialization.XmlExpectedEncoding, GetEncodingName(expEnc), GetEncodingName(actualEnc))); 547throw new XmlException(string.Format(SRSerialization.XmlEncodingMismatch, declEnc, docEnc)); 653throw new XmlException(SRSerialization.XmlInvalidBytes, ex); 666throw new XmlException(SRSerialization.UnexpectedEndOfFile); 687throw new XmlException(SRSerialization.UnexpectedEndOfFile);
FrameworkFork\System.Runtime.Serialization\System\Xml\ValueHandle.cs (1)
474throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(exception.Message, exception.InnerException));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (12)
142XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlDeclMissingVersion))); 145XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl))); 149XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlDeclMissingVersion))); 158XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl))); 162XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl))); 178XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl))); 184XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlInvalidStandalone))); 193XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlMalformedDecl))); 199XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(valueSR))); 373XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlSpecificBindingPrefix, "xml", xmlNamespace))); 377XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlSpecificBindingPrefix, "xmlns", xmlnsNamespace))); 1469throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(exception.Message, exception.InnerException));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
493throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRSerialization.XmlInvalidQualifiedName, qname)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlExceptionHelper.cs (5)
38throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(s)); 49throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(s)); 264return new XmlException(string.Format(SRSerialization.XmlInvalidConversionWithoutValue, type), exception); 269return new XmlException(string.Format(SRSerialization.XmlInvalidConversion, value, type), exception); 279return new XmlException(string.Format(SRSerialization.XmlInvalidUTF8Bytes, value), exception);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (6)
887XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlSpaceBetweenAttributes))); 920XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlInvalidFFFE))); 1056XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlInvalidCommentChars))); 1189XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlInvalidFFFE))); 1349XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlCDATAInvalidAtTopLevel))); 1392XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlCloseCData)));
FrameworkFork\System.ServiceModel\SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (1)
119return this.ThrowHelperError(new XmlException(
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KeyInfoSerializer.cs (6)
178throw /*System.ServiceModel.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SR_IdentityModel.ErrorDeserializingKeyIdentifierClause))); 220throw /*System.ServiceModel.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SR_IdentityModel.ErrorSerializingKeyIdentifier), e)); 229throw new XmlException(SRServiceModel.StandardsManagerCannotWriteObject); 268throw /*System.ServiceModel.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SR_IdentityModel.ErrorDeserializingKeyIdentifierClause), e)); 272throw /*System.ServiceModel.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SR_IdentityModel.CannotReadKeyIdentifierClause, reader.LocalName, reader.NamespaceURI))); 310throw /*System.ServiceModel.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SR_IdentityModel.ErrorSerializingKeyIdentifierClause), e));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeader.cs (1)
118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ExpectedElementMissing, Name, Namespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeader.cs (1)
271throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(exception.Message, (Exception)null));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WindowsStreamSecurityBindingElement.cs (1)
118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (2)
377throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.XmlInvalidStream)); 413throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.XmlInvalidStream));
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (4)
898throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.InvalidUriValue, address, XD.AddressingDictionary.Address.Value, AddressingVersion.WSAddressingAugust2004.Namespace))); 966throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.InvalidUriValue, address, XD.AddressingDictionary.Address.Value, XD.Addressing10Dictionary.Namespace.Value))); 977return new XmlException(message, (Exception)null, lineInfo.LineNumber, lineInfo.LinePosition); 980return new XmlException(message);
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointIdentity.cs (4)
121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.Identity.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnrecognizedIdentityType, reader.Name, reader.NamespaceURI))); 153throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnrecognizedIdentityType, reader.Name, reader.NamespaceURI))); 160throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.InvalidIdentityElement));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecureConversation.cs (3)
157throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.DerivedKeyTokenRequiresTokenReference)); 169throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.DerivedKeyInvalidGenerationSpecified, generation))); 179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.DerivedKeyInvalidOffsetSpecified, offset)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityJan2004.cs (2)
435throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CantInferReferenceForToken, EncryptedKey.ElementName.Value))); 480throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CantInferReferenceForToken, ValueTypeAbsoluteUri)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (5)
240throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.ErrorDeserializingTokenXml, e)); 244throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CannotReadToken, reader.LocalName, reader.NamespaceURI, localReader.GetAttribute(XD.SecurityJan2004Dictionary.ValueType, null)))); 433throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ErrorDeserializingKeyIdentifierClauseFromTokenXml), e)); 440throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CannotReadToken, element.LocalName, element.NamespaceURI, element.GetAttribute(SecurityJan2004Strings.ValueType, null)))); 489throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.RequiredAttributeMissing, idAttributeLocalName, issuedTokenXml.LocalName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (2)
248throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.NoRequestSecurityTokenResponseElements)); 599throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ExpectedOneOfTwoElementsFromNamespace,
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\XmlHelper.cs (12)
119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CouldNotFindNamespaceForPrefix, prefix))); 170throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ChildNodeTypeMissing, parentName, expectedNodeType))); 175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ChildNodeTypeMissing, parent.Name, expectedNodeType))); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.EmptyXmlElementError, r.Name))); 185throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.EmptyXmlElementError, e.Name))); 190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.UnexpectedEndOfFile)); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CouldNotFindNamespaceForPrefix, prefix))); 200throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.RequiredAttributeMissing, attrName, elementName))); 205throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ExpectedElementMissing, elementName, elementNamespace))); 210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnexpectedXmlChildNode, r.Name, r.NodeType, parentName))); 215throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnexpectedXmlChildNode, n.Name, n.NodeType, parent.Name))); 259new XmlException(string.Format(SRServiceModel.EmptyBase64Attribute, name, ns)));
FrameworkFork\System.ServiceModel\System\ServiceModel\X509CertificateEndpointIdentity.cs (2)
54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.X509v3Certificate.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.X509v3Certificate.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value)));
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlUtil.cs (5)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRServiceModel.XmlLangAttributeMissing)); 115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.InvalidXmlQualifiedName, qname))); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnboundPrefixInQName, qname))); 139throw new XmlException(string.Format(SRServiceModel.XmlInvalidConversion, string.Empty, "DateTime"), exception); 143throw new XmlException(string.Format(SRServiceModel.XmlInvalidConversion, string.Empty, "DateTime"), exception);
101 references to XmlException
dotnet-svcutil-lib (101)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReader.cs (2)
331Throw(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(str, i)); 633Throw(ResXml.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(value, i));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReaderAsync.cs (1)
182Throw(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(str, i));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingWriter.cs (3)
254throw new ArgumentException(string.Format(ResXml.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(ws, i))); 374throw new ArgumentException(string.Format(len == 0 ? ResXml.Xml_BadStartNameChar : ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(ncname, len))); 389throw new ArgumentException(string.Format(res, XmlException.BuildCharExceptionArgs(name, len)));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEncodedRawTextWriter.cs (1)
1752error = string.Format(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(chars, i));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (22)
2588catch (XmlException e) 2780XmlException xmlEx = e as XmlException; 2810Throw(invCharPos, ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(data, length, invCharPos)); 4424Throw(pos, ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')); 4529Throw(pos, ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(chars, _ps.charsUsed, pos)); 4869Throw(pos, ResXml.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(chars, _ps.charsUsed, pos)); 4924Throw(pos, ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')); 5305Throw(pos, ResXml.Xml_BadAttributeChar, XmlException.BuildCharExceptionArgs('<', '\0')); 6121catch (XmlException) 6358Throw(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_ps.chars, _ps.charsUsed, _ps.charPos)); 7416Throw((_ps.chars[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(ch, '\0')); 7445Throw((_ps.chars[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(high, low)); 7670Throw(pos, ResXml.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(chars, _ps.charsUsed, pos)); 7704Throw(pos, ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')); 7752catch (XmlException) 8323catch (XmlException e) 8648catch (XmlException e) 8753Throw(pos, ResXml.Xml_BadAttributeChar, XmlException.BuildCharExceptionArgs('<', '\0')); 8869catch (XmlException e) 9496catch (XmlException e) 9530catch (XmlException e)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlUtf8RawTextWriter.cs (1)
1632error = string.Format(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(chars, i));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (5)
412throw new ArgumentException(string.Format(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(pubid, i)), "pubid"); 419throw new ArgumentException(string.Format(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(sysid, i)), "sysid"); 426throw new ArgumentException(string.Format(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(subset, i)), "subset"); 1929static private XmlException DupAttrException(string prefix, string localName) 2185string[] badCharArgs = XmlException.BuildCharExceptionArgs(name, badCharIndex);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocument.cs (1)
134throw new XmlException(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos));
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (3)
2481catch (XmlException e) 2781catch (XmlException e) 3117catch (XmlException e)
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (8)
1405catch (XmlException e) 2524Throw(_curPos, ResXml.Xml_BadAttributeChar, XmlException.BuildCharExceptionArgs('<', '\0')); 2657catch (XmlException e) 3046Throw(_curPos, ResXml.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(_chars, _charsUsed, _curPos)); 3080Throw(_curPos, ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')); 3159Throw(_curPos, ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_chars, _charsUsed, _curPos)); 3556Throw(pos, ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(data, invCharPos)); 3561Throw(invCharPos, ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(data, length, invCharPos));
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (4)
1924catch (XmlException eInner) 2085catch (XmlException ex) 2118string[] invCharArgs = XmlException.BuildCharExceptionArgs(name, len); 2147catch (XmlException ex)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (1)
1759string[] invCharArgs = XmlException.BuildCharExceptionArgs(name, len);
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (1)
539catch (XmlException e)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (2)
700catch (XmlException e) 717catch (XmlException e)
FrameworkFork\Microsoft.Xml\Xml\ValidateNames.cs (5)
405throw new XmlException(ResXml.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar)); 410throw new XmlException(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar)); 425return new XmlException(ResXml.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar)); 430return new XmlException(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(s, offsetBadChar)); 648throw new ArgumentException(string.Format(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')), "name");
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (9)
387return new XmlException(endPos == 0 ? ResXml.Xml_BadStartNameChar : ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos)); 409throw CreateException(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos), exceptionType, 0, endPos + 1); 513throw CreateException(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos), exceptionType, 0, endPos + 1); 527return new XmlException(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos)); 595throw new XmlException(ResXml.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(content, pos), 0, pos + 1); 1850return CreateException(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(data, length, invCharPos), exceptionType, 0, invCharPos + 1); 1860return CreateException(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(data, invCharPos), exceptionType, 0, invCharPos + 1); 1870return CreateException(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(invChar, nextChar), exceptionType); 1875return CreateException(index == 0 ? ResXml.Xml_BadStartNameChar : ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, index), exceptionType, 0, index + 1);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
1387catch (XmlException)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\PrimitiveDataContract.cs (1)
714catch (XmlException xes)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializer.cs (6)
74catch (XmlException ex) 127catch (XmlException ex) 148catch (XmlException ex) 165catch (XmlException ex) 282catch (XmlException ex) 299catch (XmlException ex)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlExceptionHelper.cs (5)
41static public void ThrowXmlException(XmlDictionaryReader reader, XmlException exception) 262static public XmlException CreateConversionException(string type, Exception exception) 267static public XmlException CreateConversionException(string value, string type, Exception exception) 272static public XmlException CreateEncodingException(byte[] buffer, int offset, int count, Exception exception) 277static public XmlException CreateEncodingException(string value, Exception exception)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (1)
680catch (XmlException exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (5)
84catch (XmlException) 102catch (XmlException) 188catch (XmlException xmlException) 239catch (XmlException xmlException) 277catch (XmlException xmlException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
471catch (XmlException e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageFault.cs (1)
99catch (XmlException e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SessionConnectionReader.cs (1)
394catch (XmlException xmlException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (2)
216catch (XmlException) 274catch (XmlException e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (2)
141catch (XmlException xe) 203catch (XmlException xe)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (2)
392catch (XmlException xe) 431catch (XmlException xe)
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (1)
972private static XmlException CreateXmlException(XmlDictionaryReader reader, string message)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (1)
404catch (XmlException e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (1)
545catch (XmlException e)
Metadata\MetadataDocumentLoader.cs (1)
623catch (XmlNS.XmlException)