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\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\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\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\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\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\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.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\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\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\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\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\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);