2277 references to ResXml
dotnet-svcutil-lib (2277)
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 (66)
96throw new XmlException(ResXml.XmlBinary_NoRemapPrefix, new String[] { prefix, this.namespaceUri, namespaceUri }); 1060throw ThrowNotSupported(ResXml.XmlBinary_ListsOfValuesNotSupported); 1120throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Boolean")); 1141throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Boolean", e, null); 1145throw new XmlException(ResXml.Xml_ReadContentAsFormatException, "Boolean", e, null); 1210throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "DateTime")); 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); 1305throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Double")); 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); 1400throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Float")); 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); 1495throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Decimal")); 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); 1590throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Int32")); 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); 1685throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Int64")); 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); 2066throw ThrowXmlException(ResXml.Xml_UnexpectedEOF1); 2124throw ThrowXmlException(ResXml.XmlBinary_ValueTooBig); 2161throw ThrowXmlException(ResXml.XmlBinary_ValueTooBig); 2337throw new XmlException(ResXml.Xml_UnexpectedEOF1, (string[])null); 2539err = ResXml.XmlBinary_InvalidSignature; 2548err = ResXml.XmlBinary_InvalidProtocolVersion; 2555err = ResXml.XmlBinary_UnsupportedCodePage; 2583err = ResXml.XmlBinary_InvalidStandalone; 2650throw new XmlException(ResXml.Xml_PrefixForEmptyNs, String.Empty); 2655throw ThrowXmlException(ResXml.XmlBinary_AttrWithNsNoPrefix, n.localname, n.namespaceUri); 2667throw ThrowNotSupported(ResXml.XmlBinary_ListsOfValuesNotSupported); 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); 3039throw ThrowNotSupported(ResXml.XmlBinary_ListsOfValuesNotSupported); 3119throw ThrowXmlException(ResXml.Xml_UnexpectedEndTag); 3131throw ThrowXmlException(ResXml.Xml_DtdIsProhibited); 3139throw ThrowXmlException(ResXml.Xml_DtdNotAllowedInFragment); 3141throw ThrowXmlException(ResXml.Xml_BadDTDLocation); 3281throw ThrowXmlException(ResXml.Xml_InvalidRootData); 3552throw ThrowXmlException(ResXml.Xml_InvalidSurrogateMissingLowChar); 3596throw ThrowXmlException(ResXml.Xml_UnexpectedEOF1); 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); 4482return ThrowXmlException(ResXml.XmlBinary_UnexpectedToken);
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\HtmlEncodedRawTextWriter.cs (3)
425throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 430throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 435throw new InvalidOperationException(ResXml.Xml_InvalidOperation);
FrameworkFork\Microsoft.Xml\Xml\Core\HtmlUtf8RawTextWriter.cs (3)
424throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 429throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 434throw new InvalidOperationException(ResXml.Xml_InvalidOperation);
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 (7)
108throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 164throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 212throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 268throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 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 (7)
58throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 114throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 162throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 218throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 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\XmlAsyncCheckReader.cs (1)
69throw new InvalidOperationException(ResXml.Xml_AsyncIsRunningException);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReader.cs (4)
231Throw(ResXml.Xml_DtdIsProhibitedEx, string.Empty); 307Throw(ResXml.Xml_DtdIsProhibitedEx, string.Empty); 331Throw(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(str, i)); 633Throw(ResXml.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(value, i));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReaderAsync.cs (3)
82Throw(ResXml.Xml_DtdIsProhibitedEx, string.Empty); 158Throw(ResXml.Xml_DtdIsProhibitedEx, string.Empty); 182Throw(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(str, i));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingWriter.cs (10)
143throw new ArgumentException(ResXml.Xml_EmptyLocalName); 161throw new ArgumentException(ResXml.Xml_EmptyLocalName); 254throw new ArgumentException(string.Format(ResXml.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(ws, i))); 326throw new ArgumentException(ResXml.Xml_EmptyName); 369throw new ArgumentException(ResXml.Xml_EmptyName); 374throw new ArgumentException(string.Format(len == 0 ? ResXml.Xml_BadStartNameChar : ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(ncname, len))); 382throw new ArgumentException(ResXml.Xml_EmptyName); 388string res = (len == 0 || (colonPos > -1 && len == colonPos + 1)) ? ResXml.Xml_BadStartNameChar : ResXml.Xml_BadNameChar;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEncodedRawTextWriter.cs (6)
1527throw new ArgumentException(ResXml.Xml_InvalidSurrogateMissingLowChar); 1733throw new ArgumentException(string.Format(ResXml.Xml_IndentCharsNotWhitespace, propertyName)); 1752error = string.Format(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(chars, i)); 1765error = ResXml.Xml_InvalidSurrogateMissingLowChar; 1770error = string.Format(ResXml.Xml_InvalidSurrogateHighChar, ((uint)chars[i]).ToString("X", CultureInfo.InvariantCulture)); 1780throw new ArgumentException(string.Format(ResXml.Xml_InvalidCharsInIndent, new string[] { propertyName, error }));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlParserContext.cs (1)
61throw new XmlException(ResXml.Xml_NotSameNametable, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlRawWriter.cs (15)
62throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 67throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 72throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 82throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 88throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 105throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 113throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 120get { throw new InvalidOperationException(ResXml.Xml_InvalidOperation); } 126get { throw new InvalidOperationException(ResXml.Xml_InvalidOperation); } 132throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 138throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 144throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 215throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 220throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 225throw new InvalidOperationException(ResXml.Xml_InvalidOperation);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (39)
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); 736throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBase64")); 742throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBase64")); 748throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBinHex")); 754throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBinHex")); 772throw new NotSupportedException(ResXml.Xml_ReadValueChunkNotSupported); 793throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 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); 1395throw new InvalidOperationException(ResXml.Xml_ReadSubtreeNotOnElement); 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); 1583return new InvalidOperationException(AddLineInfo(string.Format(ResXml.Xml_InvalidReadContentAs, new string[] { methodName, nodeType.ToString() }), lineInfo)); 1588return new InvalidOperationException(AddLineInfo(string.Format(ResXml.Xml_InvalidReadElementContentAs, new string[] { methodName, nodeType.ToString() }), lineInfo)); 1598message += " " + string.Format(ResXml.Xml_ErrorPosition, lineArgs); 1679throw new XmlException(ResXml.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo); 1688throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString()); 1926throw new ArgumentException(ResXml.XmlBinary_NoParserContext, "inputContext");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderAsync.cs (9)
77throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 81throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 143throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBase64")); 149throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBase64")); 155throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBinHex")); 161throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBinHex")); 168throw new NotSupportedException(ResXml.Xml_ReadValueChunkNotSupported); 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 (4)
430throw new ArgumentException(ResXml.XmlConvert_BadUri, "inputUri"); 552throw new XmlException(ResXml.Xml_ReadOnlyProperty, this.GetType().Name + '.' + propertyName); 670throw new InvalidOperationException(string.Format(ResXml.Xml_IncompatibleConformanceLevel, _conformanceLevel.ToString())); 728throw new InvalidOperationException(string.Format(ResXml.Xml_IncompatibleConformanceLevel, _conformanceLevel.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReader.cs (11)
890throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 925throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 947throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 1026throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 1060throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1082throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 1141throw new InvalidOperationException(ResXml.Xml_MixingReadValueChunkWithBinary); 1372throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1401throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1512throw new InvalidOperationException(ResXml.Xml_ClosedOrErrorReader); 1530throw new InvalidOperationException(ResXml.Xml_MixingReadValueChunkWithBinary);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReaderAsync.cs (9)
307throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 342throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 364throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 443throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 477throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 499throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 550throw new InvalidOperationException(ResXml.Xml_MixingReadValueChunkWithBinary); 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\XmlTextEncoder.cs (3)
224throw new ArgumentException(ResXml.Xml_SurrogatePairSplit); 457throw new ArgumentException(ResXml.Xml_InvalidSurrogateMissingLowChar); 517throw new ArgumentException(ResXml.Xml_InvalidSurrogateMissingLowChar);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (147)
585throw new ArgumentException(ResXml.Xml_EmptyUrl, "url"); 619Throw(ResXml.Xml_DoubleBaseUri); 667throw new XmlException(ResXml.Xml_CannotResolveUrl, _laterInitParam.inputUriStr); 712Throw(ResXml.Xml_DoubleBaseUri); 1327ThrowWithoutLineInfo(ResXml.Xml_MissingRoot); 1502throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 1525throw new XmlException(ResXml.Xml_InternalError, string.Empty); 1551throw new XmlException(ResXml.Xml_InternalError, string.Empty); 1578throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 1638throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 1698throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 1757throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 1817throw new InvalidOperationException(ResXml.Xml_MixingBinaryContentMethods); 1851throw new InvalidOperationException(string.Format(ResXml.Xml_InvalidReadValueChunk, _curNode.type)); 1913Throw(ResXml.Xml_NotEnoughSpaceForSurrogatePair); 1955Throw(ResXml.Xml_NotEnoughSpaceForSurrogatePair); 2037throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 2079throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 2112throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 2117throw new XmlException(ResXml.Xml_WhitespaceHandling, string.Empty); 2154throw new XmlException(ResXml.Xml_EntityHandling, string.Empty); 2189Throw(new InvalidOperationException(ResXml.Xml_InvalidResetStateCall)); 2590if (e.ResString == ResXml.Xml_UnexpectedEOF && _ps.entity != null) 2592SendValidationEvent(XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, null, _ps.LineNo, _ps.LinePos); 2810Throw(invCharPos, ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(data, length, invCharPos)); 3100Throw(ResXml.Xml_PartialContentNodeTypeNotSupportedEx, fragmentType.ToString()); 3114ThrowWithoutLineInfo(ResXml.Xml_DtdIsProhibitedEx); 3150ThrowWithoutLineInfo(ResXml.Xml_CannotResolveUrl, _ps.baseUriStr); 3230Throw(ResXml.Xml_UnknownEncoding, "ebcdic"); 3308Throw(ResXml.Xml_EncodingSwitchAfterResetState, newEncodingName); 3312ThrowWithoutLineInfo(ResXml.Xml_MissingByteOrderMark); 3331Throw(ResXml.Xml_UnknownEncoding, newEncodingName, innerEx); 3335Throw(ResXml.Xml_UnknownEncoding, newEncodingName, innerEx); 3343Throw(ResXml.Xml_EncodingSwitchAfterResetState, newEncodingName); 3595Throw(_ps.charsUsed, ResXml.Xml_InvalidCharInThisEncoding); 3681Throw(isTextDecl ? ResXml.Xml_InvalidTextDecl : ResXml.Xml_InvalidXmlDecl); 3699Throw(ResXml.Xml_InvalidTextDecl); 3708Throw(ResXml.Xml_EncodingSwitchAfterResetState, (_ps.encoding.GetByteCount("A") == 1) ? "UTF-8" : "UTF-16"); 3779Throw(isTextDecl ? ResXml.Xml_InvalidTextDecl : ResXml.Xml_InvalidXmlDecl); 3858Throw(ResXml.Xml_InvalidVersionNumber, badVersion); 3882Throw(ResXml.Xml_InvalidXmlDecl, _ps.LineNo, _ps.LinePos - 1); 3907Throw(ResXml.Xml_UnclosedQuote); 3912Throw(isTextDecl ? ResXml.Xml_InvalidTextDecl : ResXml.Xml_InvalidXmlDecl); 3918Throw(ResXml.Xml_UnexpectedEOF1); 3935Throw(ResXml.Xml_EncodingSwitchAfterResetState, (_ps.encoding.GetByteCount("A") == 1) ? "UTF-8" : "UTF-16"); 4030Throw(_ps.charPos, ResXml.Xml_InvalidRootData); 4050Throw(ResXml.Xml_BadDTDLocation); 4060Throw(pos + 1, ResXml.Xml_UnexpectedEndTag); 4068Throw(pos, ResXml.Xml_MultipleRoots); 4085Throw(pos, ResXml.Xml_InvalidRootData); 4159Throw(ResXml.Xml_InvalidRootData); 4175ThrowWithoutLineInfo(ResXml.Xml_MissingRoot); 4257Throw(ResXml.Xml_BadDTDLocation); 4338Throw(_ps.charsUsed, ResXml.Xml_UnexpectedEOF1); 4361Throw(_ps.charsUsed, ResXml.Xml_UnexpectedEOFInElementContent, _stringBuilder.ToString()); 4424Throw(pos, ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')); 4509Throw(pos, ResXml.Xml_UnexpectedEOF, ">"); 4529Throw(pos, ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(chars, _ps.charsUsed, pos)); 4575SendValidationEvent(XmlSeverityType.Error, ResXml.Sch_StandAloneNormalization, attr.GetNameWPrefix(_nameTable), attr.LineNo, attr.LinePos); 4606SendValidationEvent(XmlSeverityType.Error, ResXml.Sch_UnSpecifiedDefaultAttributeInExternalStandalone, qname, _curNode.LineNo, _curNode.LinePos); 4761Throw(ResXml.Xml_TagMismatchEx, args); 4766Throw(ResXml.Xml_UnexpectedEndTag); 4869Throw(pos, ResXml.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(chars, _ps.charsUsed, pos)); 4924Throw(pos, ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')); 5124Throw(ResXml.Xml_DupAttributeName, _nodes[j].GetNameWPrefix(_nameTable), _nodes[j].LineNo, _nodes[j].LinePos); 5144Throw(ResXml.Xml_DupAttributeName, attr2.GetNameWPrefix(_nameTable), attr2.LineNo, attr2.LinePos); 5179Throw(ResXml.Xml_BadNamespaceDecl, attr.lineInfo2.lineNo, attr.lineInfo2.linePos - 1); 5203Throw(ResXml.Xml_InvalidXmlSpace, attr.StringValue, attr.lineInfo.lineNo, attr.lineInfo.linePos); 5305Throw(pos, ResXml.Xml_BadAttributeChar, XmlException.BuildCharExceptionArgs('<', '\0')); 5439Throw(ResXml.Xml_UnexpectedEOF1); 5451Throw(ResXml.Xml_EntityRefNesting); 5455Throw(ResXml.Xml_UnclosedQuote); 5460Throw(ResXml.Xml_InternalError); 5795Throw(pos, ResXml.Xml_CDATAEndInText); 5851Throw(ResXml.Xml_UnexpectedEOF1); 6018Throw(ResXml.Xml_InvalidNodeType, _curNode.type.ToString()); 6056Throw(ResXml.Xml_InvalidRootData); 6082Throw(ResXml.Xml_UnexpectedEOF1); 6123Throw(ResXml.Xml_ErrorParsingEntityName, _ps.LineNo, savedLinePos); 6166Throw(ResXml.Xml_UndeclaredEntity, name, _ps.LineNo, entityStartLinePos); 6178Throw(ResXml.Xml_UnparsedEntityRef, name, _ps.LineNo, entityStartLinePos); 6183Throw(ResXml.Xml_ExternalEntityInStandAloneDocument, entity.Name, _ps.LineNo, entityStartLinePos); 6190Throw(ResXml.Xml_ExternalEntityInAttValue, name, _ps.LineNo, entityStartLinePos); 6244Throw(ResXml.Xml_InternalError); 6255Throw(ResXml.Xml_IncompleteEntity); 6270Throw(ResXml.Xml_IncompleteEntity); 6331Throw(target.Equals("xml") ? ResXml.Xml_XmlDeclNotFirst : ResXml.Xml_InvalidPIName, target); 6358Throw(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_ps.chars, _ps.charsUsed, _ps.charPos)); 6422Throw(_ps.charsUsed, ResXml.Xml_UnexpectedEOF, "PI"); 6628Throw(ResXml.Xml_UnexpectedEOF, (type == XmlNodeType.Comment) ? "Comment" : "CDATA"); 6677Throw(pos, ResXml.Xml_InvalidCommentChars); 6791ThrowWithoutLineInfo(_v1Compat ? ResXml.Xml_DtdIsProhibited : ResXml.Xml_DtdIsProhibitedEx); 6799Throw(ResXml.Xml_UnexpectedEOF, "DOCTYPE"); 6813Throw(_ps.charPos - 2, ResXml.Xml_MultipleDTDsProvided); // position just before <!DOCTYPE 6817Throw(_ps.charPos - 2, ResXml.Xml_DtdAfterRootElement); 6879Throw(ResXml.Xml_UnexpectedEOF1); 6916Throw(ResXml.Xml_UnexpectedEOF1); 6939Throw(ResXml.Xml_ExpectExternalOrClose); 6961Throw(ResXml.Xml_ExpectSubOrClose); 7167Throw(ResXml.Xml_UnexpectedEOF1); 7173Throw(ResXml.Xml_UnexpectedEOF1); 7273Throw(ResXml.Xml_UnexpectedEOF1); 7314Throw(ResXml.Xml_UnexpectedEOF); 7355badDigitExceptionString = ResXml.Xml_BadHexEntity; 7374badDigitExceptionString = ResXml.Xml_BadDecimalEntity; 7393Throw(ResXml.Xml_CharEntityOverflow, (string)null, e); 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)); 7666Throw(pos, ResXml.Xml_UnexpectedEOF, "Name"); 7670Throw(pos, ResXml.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(chars, _ps.charsUsed, pos)); 7704Throw(pos, ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')); 7729Throw(pos, ResXml.Xml_UnexpectedEOF, "Name"); 7754Throw(ResXml.Xml_ErrorParsingEntityName); 7761Throw(ResXml.Xml_ErrorParsingEntityName); 7919Throw(ResXml.Xml_UnknownNs, node.prefix, node.LineNo, node.LinePos); 7930Throw(ResXml.Xml_XmlnsPrefix, (int)attr.lineInfo2.lineNo, (int)attr.lineInfo2.linePos); 7934Throw(ResXml.Xml_NamespaceDeclXmlXmlns, prefix, (int)attr.lineInfo2.lineNo, (int)attr.lineInfo2.linePos); 7941Throw(ResXml.Xml_NamespaceDeclXmlXmlns, prefix, (int)attr.lineInfo2.lineNo, (int)attr.lineInfo2.linePos); 7946Throw(ResXml.Xml_BadNamespaceDecl, (int)attr.lineInfo.lineNo, (int)attr.lineInfo.linePos); 8073Throw(new XmlException(entityName == null ? ResXml.Xml_ErrorOpeningExternalDtd : ResXml.Xml_ErrorOpeningExternalEntity, new string[] { uri.ToString(), innerMessage }, e, 0, 0)); 8078ThrowWithoutLineInfo(ResXml.Xml_CannotResolveExternalSubset, new string[] { (publicId != null ? publicId : string.Empty), systemId }, null); 8082Throw(_dtdProcessing == DtdProcessing.Ignore ? ResXml.Xml_CannotResolveEntityDtdIgnored : ResXml.Xml_CannotResolveEntity, entityName); 8209Throw(entity.IsParameterEntity ? ResXml.Xml_RecursiveParEntity : ResXml.Xml_RecursiveGenEntity, entity.Name, 8753Throw(pos, ResXml.Xml_BadAttributeChar, XmlException.BuildCharExceptionArgs('<', '\0')); 8896Throw(ResXml.Xml_UnexpectedEOF1); 8900Throw(ResXml.Xml_UnexpectedTokens2, new string[3] { unexpectedToken, expectedToken1, expectedToken2 }); 8904Throw(ResXml.Xml_UnexpectedTokenEx, new string[2] { unexpectedToken, expectedToken1 }); 8941Throw(pos, ResXml.Xml_UnexpectedEOF1); 8945Throw(pos, ResXml.Xml_ExpectingWhiteSpace, unexpectedToken); 9020throw new InvalidOperationException(ResXml.Xml_MixingReadValueChunkWithBinary); 9024throw new InvalidOperationException(ResXml.Xml_MixingV1StreamingWithV2Binary); 9059Throw(ResXml.Xml_InvalidNodeType, _curNode.type.ToString()); 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); 9653ThrowWithoutLineInfo(ResXml.Xml_LimitExceeded, "MaxCharactersInDocument"); 9662ThrowWithoutLineInfo(ResXml.Xml_LimitExceeded, "MaxCharactersInDocument"); 9672ThrowWithoutLineInfo(ResXml.Xml_LimitExceeded, "MaxCharactersFromEntities"); 9681ThrowWithoutLineInfo(ResXml.Xml_LimitExceeded, "MaxCharactersFromEntities");
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\XmlTextWriter.cs (33)
325throw new InvalidOperationException(ResXml.Xml_NotInWriteState); 345throw new ArgumentException(ResXml.Xml_InvalidIndentation); 365throw new ArgumentException(ResXml.Xml_InvalidQuote); 397throw new ArgumentException(ResXml.Xml_ClosedOrError); 401throw new ArgumentException(ResXml.Xml_NoRoot); 475throw new ArgumentException(ResXml.Xml_UndefPrefix); 518throw new ArgumentException(ResXml.Xml_NoNamespaces); 584throw new ArgumentException(ResXml.Xml_XmlnsBelongsToReservedNs); 603throw new ArgumentException(ResXml.Xml_XmlnsBelongsToReservedNs); 615throw new ArgumentException(ResXml.Xml_UndefPrefix); 656throw new ArgumentException(ResXml.Xml_NoNamespaces); 707throw new ArgumentException(ResXml.Xml_InvalidCDataChars); 731throw new ArgumentException(ResXml.Xml_InvalidCommentChars); 755throw new ArgumentException(ResXml.Xml_InvalidPiChars); 759throw new ArgumentException(ResXml.Xml_DupXmlDecl); 814throw new ArgumentException(ResXml.Xml_NonWhitespace); 1033throw new ArgumentException(string.Format(ResXml.Xml_UndefNamespace, ns)); 1047throw new ArgumentException(ResXml.Xml_NoNamespaces); 1063throw new ArgumentException(ResXml.Xml_EmptyName); 1113throw new ArgumentException(ResXml.Xml_EmptyName); 1117throw new ArgumentException(string.Format(ResXml.Xml_InvalidNameChars, name)); 1137throw new InvalidOperationException(ResXml.Xml_NotTheFirst); 1171throw new InvalidOperationException(ResXml.Xml_Closed); 1175throw new InvalidOperationException(string.Format(ResXml.Xml_WrongToken, s_tokenName[(int)token], s_stateName[(int)State.Error])); 1181throw new InvalidOperationException(string.Format(ResXml.Xml_WrongToken, s_tokenName[(int)token], s_stateName[(int)_currentState])); 1284throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 1308throw new InvalidOperationException(ResXml.Xml_NoStartTag); 1415throw new ArgumentException(ResXml.Xml_CanNotBindToReservedNamespace); 1442throw new ArgumentException(ResXml.Xml_PrefixForEmptyNs); 1627throw new ArgumentException(ResXml.Xml_EmptyName); 1677throw new ArgumentException(string.Format(ResXml.Xml_InvalidNameChars, name)); 1701throw new ArgumentException(string.Format(ResXml.Xml_InvalidXmlSpace, value)); 1724throw new ArgumentException(ResXml.Xml_InvalidPrefix);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlUtf8RawTextWriter.cs (6)
1375throw new ArgumentException(ResXml.Xml_InvalidSurrogateMissingLowChar); 1613throw new ArgumentException(string.Format(ResXml.Xml_IndentCharsNotWhitespace, propertyName)); 1632error = string.Format(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(chars, i)); 1645error = ResXml.Xml_InvalidSurrogateMissingLowChar; 1650error = string.Format(ResXml.Xml_InvalidSurrogateHighChar, ((uint)chars[i]).ToString("X", CultureInfo.InvariantCulture)); 1660throw new ArgumentException(string.Format(ResXml.Xml_InvalidCharsInIndent, new string[] { propertyName, error }));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlValidatingReaderImpl.cs (6)
144throw new ArgumentException(ResXml.Arg_ExpectingXmlTextReader, "reader"); 226throw new ArgumentException(ResXml.Arg_ExpectingXmlTextReader, "reader"); 759throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 889throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 970throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 982throw new XmlException(ResXml.Xml_InvalidNodeType, _outerReader.NodeType.ToString());
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (42)
361throw new ArgumentException(ResXml.Xml_NoRoot); 381throw new ArgumentException(ResXml.Xml_EmptyName); 387throw new InvalidOperationException(ResXml.Xml_DtdNotAllowedInFragment); 394throw new InvalidOperationException(ResXml.Xml_DtdAlreadyWritten); 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"); 449throw new ArgumentException(ResXml.Xml_EmptyLocalName); 476throw new ArgumentException(ResXml.Xml_PrefixForEmptyNs); 533throw new XmlException(ResXml.Xml_NoStartTag, string.Empty); 584throw new XmlException(ResXml.Xml_NoStartTag, string.Empty); 640throw new ArgumentException(ResXml.Xml_EmptyLocalName); 679throw new ArgumentException(ResXml.Xml_XmlnsPrefix); 702throw new ArgumentException(ResXml.Xml_XmlnsPrefix); 712throw new ArgumentException(ResXml.Xml_XmlPrefix); 808throw new ArgumentException(ResXml.Xml_PrefixForEmptyNs); 812throw new ArgumentException(ResXml.Xml_CanNotBindToReservedNamespace); 852throw new ArgumentException(string.Format(ResXml.Xml_InvalidXmlSpace, value)); 924throw new ArgumentException(ResXml.Xml_EmptyName); 939throw new ArgumentException(_conformanceLevel == ConformanceLevel.Document ? ResXml.Xml_DupXmlDecl : ResXml.Xml_CannotWriteXmlDecl); 975throw new ArgumentException(ResXml.Xml_EmptyName); 1002throw new ArgumentException(ResXml.Xml_InvalidSurrogateMissingLowChar); 1058throw new ArgumentException(ResXml.Xml_NonWhitespace); 1368throw new ArgumentException(ResXml.Xml_EmptyLocalName); 1381throw new ArgumentException(string.Format(ResXml.Xml_UndefNamespace, ns)); 1574throw new InvalidOperationException(ResXml.Xml_ClosedOrError); 1655throw new InvalidOperationException(ResXml.Xml_CannotStartDocumentOnFragment); 1701throw new XmlException(ResXml.Xml_RedefinePrefix, new string[] { prefix, _nsStack[existingNsIndex].namespaceUri, ns }); 1716throw new ArgumentException(ResXml.Xml_XmlPrefix); 1726throw new ArgumentException(ResXml.Xml_XmlnsPrefix); 1743throw new ArgumentException(string.Format(ResXml.Xml_NamespaceDeclXmlXmlns, prefix)); 1781throw new XmlException(ResXml.Xml_RedefinePrefix, new string[] { prefix, _nsStack[existingNsIndex].namespaceUri, ns }); 1827throw new ArgumentException(string.Format(ResXml.Xml_NamespaceDeclXmlXmlns, prefix)); 1835throw new ArgumentException(ResXml.Xml_XmlPrefix); 1840throw new ArgumentException(ResXml.Xml_XmlnsPrefix); 1938return new XmlException(ResXml.Xml_DupAttributeName, sb.ToString()); 1948throw new InvalidOperationException(ResXml.Xml_ClosedOrError); 1952throw new InvalidOperationException(string.Format(ResXml.Xml_WrongToken, tokenName[(int)token], GetStateName(_currentState))); 2190return new ArgumentException(string.Format(ResXml.Xml_InvalidNameCharsDetail, args)); 2196string wrongTokenMessage = string.Format(ResXml.Xml_WrongToken, tokenName[(int)token], GetStateName(currentState)); 2203throw new InvalidOperationException(wrongTokenMessage + ' ' + ResXml.Xml_ConformanceLevelFragment);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (3)
243throw new ArgumentException(ResXml.Xml_EmptyName); 263throw new ArgumentException(string.Format(ResXml.Xml_UndefNamespace, ns)); 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\DocumentSchemaValidator.cs (7)
139throw new XmlSchemaValidationException(ResXml.XmlDocument_NoNodeSchemaInfo, null, nodeToValidate); 154throw new XmlSchemaValidationException(ResXml.XmlDocument_NoNodeSchemaInfo, null, nodeToValidate); 160throw new InvalidOperationException(string.Format(ResXml.XmlDocument_ValidateInvalidNodeType, null)); 289throw new InvalidOperationException(string.Format(ResXml.Xml_InvalidXmlDocument, string.Format(ResXml.Xdom_NoRootEle))); 333throw new InvalidOperationException(string.Format(ResXml.Xml_UnexpectedNodeType, new string[] { _currentNode.NodeType.ToString() })); 780throw new InvalidOperationException(string.Format(ResXml.Xml_UnexpectedNodeType, new string[] { _currentNode.NodeType.ToString() }));
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXmlWriter.cs (8)
376throw new InvalidOperationException(ResXml.Xpn_MissingParent); 387throw new InvalidOperationException(ResXml.Xpn_MissingParent); 412throw new InvalidOperationException(ResXml.Xpn_NoContent); 437throw new XmlException(ResXml.Xml_DupAttributeName, attr.Prefix.Length == 0 ? attr.LocalName : string.Concat(attr.Prefix, ":", attr.LocalName)); 453throw new InvalidOperationException(ResXml.Xpn_MissingParent); 459throw new InvalidOperationException(ResXml.Xpn_BadPosition); 463throw new InvalidOperationException(ResXml.Xdom_Node_Modify_ReadOnly); 611throw new InvalidOperationException(ResXml.Xml_ClosedOrError);
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXPathNavigator.cs (18)
74throw new InvalidOperationException(ResXml.Xdom_Node_Modify_ReadOnly); 85throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1275throw new ArgumentException(string.Format(ResXml.XPathDocument_SchemaSetNotAllowed, null)); 1285throw new InvalidOperationException(ResXml.XmlDocument_NoSchemaInfo); 1524throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1541throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1558throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1581throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1602throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1638throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1657throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1723throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1734throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1785throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1796throw new InvalidOperationException(ResXml.Xpn_MissingParent); 1800throw new InvalidOperationException(ResXml.Xdom_Node_Modify_ReadOnly); 1811throw new InvalidOperationException(ResXml.Xpn_MissingParent); 1816throw new InvalidOperationException(ResXml.Xdom_Node_Modify_ReadOnly);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlAttribute.cs (1)
30throw new ArgumentException(ResXml.Xdom_Attr_Name);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlAttributeCollection.cs (8)
31throw new IndexOutOfRangeException(ResXml.Xdom_IndexOutOfRange); 118throw new ArgumentException(ResXml.Xdom_AttrCol_Object); 137throw new ArgumentException(ResXml.Xdom_NamedNode_Context); 156throw new ArgumentException(ResXml.Xdom_NamedNode_Context); 182throw new ArgumentException(ResXml.Xdom_AttrCol_Insert); 185throw new ArgumentException(ResXml.Xdom_NamedNode_Context); 211throw new ArgumentException(ResXml.Xdom_AttrCol_Insert); 214throw new ArgumentException(ResXml.Xdom_NamedNode_Context);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlChildEnumerator.cs (1)
63throw new InvalidOperationException(ResXml.Xml_InvalidOperation);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDeclaration.cs (4)
25throw new ArgumentException(ResXml.Xdom_Version); 28throw new ArgumentException(string.Format(ResXml.Xdom_standalone, standalone)); 61throw new ArgumentException(string.Format(ResXml.Xdom_standalone, value)); 108throw new ArgumentException(ResXml.Xdom_Version);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocument.cs (16)
134throw new XmlException(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos)); 170throw new ArgumentException(string.Format(ResXml.Xdom_Attr_Reserved_XmlNS, namespaceURI)); 407throw new InvalidOperationException(ResXml.Xdom_DualDocumentTypeNode); 412throw new InvalidOperationException(ResXml.Xdom_DualDocumentElementNode); 417throw new InvalidOperationException(ResXml.Xdom_DualDeclarationNode); 898throw new InvalidOperationException(ResXml.Xdom_Import_NullNode); 958throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, ResXml.Xdom_Import, node.NodeType.ToString())); 1101throw new ArgumentException(string.Format(ResXml.Arg_CannotCreateNode, type)); 1196throw new ArgumentException(string.Format(ResXml.Xdom_Invalid_NT_String, nodeTypeString)); 1312throw new InvalidOperationException(ResXml.Xdom_Document_Innertext); 1335throw new XmlException(ResXml.Xml_InvalidXmlDocument, ResXml.Xdom_NoRootEle); 1435throw new InvalidOperationException(ResXml.XmlDocument_NoSchemaInfo); 1440throw new ArgumentException(string.Format(ResXml.XmlDocument_NodeNotFromDocument, "nodeToValidate")); 1726throw new InvalidOperationException(ResXml.Xdom_Node_Insert_TypeConflict); 1729throw new InvalidOperationException(ResXml.Xdom_Node_Insert_Location);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocumentFragment.cs (1)
56throw new ArgumentException(ResXml.Xdom_Node_Null_Doc);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlElement.cs (2)
33throw new ArgumentException(ResXml.Xdom_Empty_LocalName); 312throw new InvalidOperationException(ResXml.Xdom_Attr_InUse);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlElementList.cs (1)
306throw new InvalidOperationException(ResXml.Xdom_Enum_ElementList);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlEntity.cs (3)
36throw new InvalidOperationException(ResXml.Xdom_Node_Cloning); 72throw new InvalidOperationException(ResXml.Xdom_Ent_Innertext); 143set { throw new InvalidOperationException(ResXml.Xdom_Set_InnerXml); }
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlEntityReference.cs (2)
45throw new ArgumentException(ResXml.Xdom_InvalidCharacter_EntityReference); 74throw new InvalidOperationException(ResXml.Xdom_EntRef_SetVal);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlLoader.cs (7)
41throw new ArgumentException(ResXml.Xdom_Load_NoDocument); 43throw new ArgumentException(ResXml.Xdom_Load_NoReader); 79throw new ArgumentException(ResXml.Xdom_Load_NoDocument); 81throw new ArgumentException(ResXml.Xdom_Load_NoReader); 619throw new XmlException(ResXml.Xml_InternalError, string.Empty); 926throw new XmlException(ResXml.Xml_UndeclaredParEntity, eref.Name); 1007return new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, ResXml.Xml_UnexpectedNodeType, nodetype.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNamedNodeMap.cs (1)
80throw new IndexOutOfRangeException(ResXml.Xdom_IndexOutOfRange);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNode.cs (23)
30throw new ArgumentException(ResXml.Xdom_Node_Null_Doc); 101set { throw new InvalidOperationException(string.Format(ResXml.Xdom_Node_SetVal, NodeType)); } 236throw new ArgumentException(ResXml.Xdom_Node_Insert_Child); 242throw new InvalidOperationException(ResXml.Xdom_Node_Insert_Contain); 245throw new ArgumentException(ResXml.Xdom_Node_Insert_Path); 253throw new ArgumentException(ResXml.Xdom_Node_Insert_Context); 256throw new InvalidOperationException(ResXml.Xdom_Node_Insert_Location); 277throw new InvalidOperationException(ResXml.Xdom_Node_Insert_TypeConflict); 350throw new ArgumentException(ResXml.Xdom_Node_Insert_Child); 356throw new InvalidOperationException(ResXml.Xdom_Node_Insert_Contain); 359throw new ArgumentException(ResXml.Xdom_Node_Insert_Path); 367throw new ArgumentException(ResXml.Xdom_Node_Insert_Context); 370throw new InvalidOperationException(ResXml.Xdom_Node_Insert_Location); 393throw new InvalidOperationException(ResXml.Xdom_Node_Insert_TypeConflict); 477throw new InvalidOperationException(ResXml.Xdom_Node_Remove_Contain); 480throw new ArgumentException(ResXml.Xdom_Node_Remove_Child); 574throw new InvalidOperationException(ResXml.Xdom_Node_Insert_Contain); 577throw new ArgumentException(ResXml.Xdom_Node_Insert_Child); 584throw new ArgumentException(ResXml.Xdom_Node_Insert_Context); 602throw new InvalidOperationException(ResXml.Xdom_Node_Insert_TypeConflict); 606throw new InvalidOperationException(ResXml.Xdom_Node_Insert_Location); 988throw new InvalidOperationException(ResXml.Xdom_Set_InnerXml); 1300throw new InvalidOperationException(ResXml.Xdom_Node_Modify_ReadOnly);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeReader.cs (2)
1740throw new InvalidOperationException(ResXml.Xml_InvalidOperation); 1787throw new InvalidOperationException(ResXml.Xnr_ResolveEntity);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNotation.cs (2)
45throw new InvalidOperationException(ResXml.Xdom_Node_Cloning); 83set { throw new InvalidOperationException(ResXml.Xdom_Set_InnerXml); }
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlSignificantWhitespace.cs (2)
18throw new ArgumentException(ResXml.Xdom_WS_Char); 91throw new ArgumentException(ResXml.Xdom_WS_Char);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlText.cs (1)
113throw new InvalidOperationException(ResXml.Xdom_TextNode_SplitText);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlWhitespace.cs (2)
18throw new ArgumentException(ResXml.Xdom_WS_Char); 84throw new ArgumentException(ResXml.Xdom_WS_Char);
FrameworkFork\Microsoft.Xml\Xml\EmptyEnumerator.cs (1)
28throw new InvalidOperationException(ResXml.Xml_InvalidOperation);
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\AstTree.cs (10)
571throw new XmlSchemaException(ResXml.Sch_EmptyXPath, string.Empty); 593throw new XmlSchemaException(ResXml.Sch_ICXpathError, xPath); 606throw new XmlSchemaException(ResXml.Sch_ICXpathError, xPath); 617throw new XmlSchemaException(ResXml.Sch_SelectorAttr, xPath); 628throw new XmlSchemaException(ResXml.Sch_ICXpathError, xPath); 656throw new XmlSchemaException(ResXml.Sch_ICXpathError, xPath); 677throw new XmlSchemaException(ResXml.Sch_ICXpathError, xPath); 685throw new XmlSchemaException(ResXml.Sch_ICXpathError, xPath); 689throw new XmlSchemaException(ResXml.Sch_ICXpathError, xPath); 720throw new XmlSchemaException(ResXml.Sch_UnresolvedPrefix, axis.Prefix);
FrameworkFork\Microsoft.Xml\Xml\schema\BaseProcessor.cs (8)
83string code = ResXml.Sch_DupGlobalElement; 105code = ResXml.Sch_DupAttributeGroup; 124code = ResXml.Sch_DupGlobalAttribute; 132code = ResXml.Sch_DupSimpleType; 140code = ResXml.Sch_DupComplexType; 148code = ResXml.Sch_DupGroup; 152code = ResXml.Sch_DupNotation; 156code = ResXml.Sch_DupIdentityConstraint;
FrameworkFork\Microsoft.Xml\Xml\schema\basevalidator.cs (11)
138throw new XmlException(ResXml.Xml_InternalError, string.Empty); 171SendValidationEvent(ResXml.Sch_ContentInNill, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 181SendValidationEvent(ResXml.Sch_InvalidTextInElement, XmlSchemaValidator.BuildElementName(context.LocalName, context.Namespace)); 186SendValidationEvent(ResXml.Sch_InvalidTextInElementExpecting, new string[] { XmlSchemaValidator.BuildElementName(context.LocalName, context.Namespace), XmlSchemaValidator.PrintExpectedElements(names, false) }); 191SendValidationEvent(ResXml.Sch_InvalidTextInEmpty, string.Empty); 207SendValidationEvent(ResXml.Sch_ContentInNill, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 211SendValidationEvent(ResXml.Sch_InvalidWhitespaceInEmpty, string.Empty); 291e = new XmlSchemaException(ResXml.Sch_UndeclaredEntity, name, baseUri, lineNumber, linePosition); 295e = new XmlSchemaException(ResXml.Sch_UnparsedEntityRef, name, baseUri, lineNumber, linePosition); 317errorResId = ResXml.Sch_UndeclaredEntity; 321errorResId = ResXml.Sch_UnparsedEntityRef;
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (24)
391throw new XmlSchemaException(ResXml.Sch_ListFromNonatomic, string.Empty); 395throw new XmlSchemaException(ResXml.Sch_ListFromNonatomic, string.Empty); 553throw new XmlSchemaException(ResXml.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null); 571throw new XmlSchemaException(ResXml.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null); 1166return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 1289exception = new XmlSchemaException(ResXml.Sch_UnionFailedEx, s); 1329exception = new XmlSchemaException(ResXml.Sch_UnionFailedEx, value.ToString()); 1923return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 1954return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 1993return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 2088exception = new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, _dateTimeFlags.ToString())); 2764return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 3100return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 3147throw new XmlSchemaException(ResXml.Sch_NotationRequired, caller); 3153throw new XmlSchemaException(ResXml.Sch_NotationRequired, caller); 3773throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3777throw new XmlSchemaException(ResXml.Sch_InvalidValue, s); 3794throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3798throw new XmlSchemaException(ResXml.Sch_InvalidValue, s); 3815throw new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 3832throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3875throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3919throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3976throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e);
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (111)
433SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(ResXml.Sch_UndeclaredNotation, un.name, BaseUriStr, (int)un.lineNo, (int)un.linePos)); 572Throw(_curPos - 3, ResXml.Xml_InvalidConditionalSection); // 3==strlen("<![") 583SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 588Throw(_curPos - 3, ResXml.Xml_UnexpectedCDataEnd); 596Throw(_curPos, ResXml.Xml_UnclosedConditionalSection); 619Throw(_curPos, ResXml.Xml_ExpectDtdMarkup); 625Throw(_curPos, ResXml.Xml_IncompleteDtdContent); 629Throw(_curPos, ResXml.Xml_UnclosedConditionalSection); 643SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 649Throw(_curPos, ResXml.Sch_ParEntityRefNesting); 699Throw(ResXml.Xml_EnumerationRequired, string.Empty, attrDef.LineNumber, attrDef.LinePosition); 739Throw(ResXml.Xml_EnumerationRequired, string.Empty, attrDef.LineNumber, attrDef.LinePosition); 788SendValidationEvent(XmlSeverityType.Error, ResXml.Sch_IdAttrDeclared, elementDecl.Name.ToString()); 801SendValidationEvent(_curPos - 8, XmlSeverityType.Error, ResXml.Sch_DupNotationAttribute, elementDecl.Name.ToString()); // 8 == strlen("NOTATION") 809SendValidationEvent(_curPos - 8, XmlSeverityType.Error, ResXml.Sch_NotationAttributeOnEmptyElement, elementDecl.Name.ToString());// 8 == strlen("NOTATION") 834SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(ResXml.Xml_AttlistDuplNotationValue, notationName, BaseUriStr, (int)LineNo, (int)LinePos)); 873SendValidationEvent(XmlSeverityType.Error, new XmlSchemaException(ResXml.Xml_AttlistDuplEnumValue, nmtoken, BaseUriStr, (int)LineNo, (int)LinePos)); 918SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_AttListPresence, string.Empty); 956SendValidationEvent(_curPos - name.Name.Length, XmlSeverityType.Error, ResXml.Sch_DupElementDecl, GetNameString()); 1071Throw(_curPos, ResXml.Xml_InvalidContentModel); 1083Throw(_curPos, ResXml.Xml_InvalidContentModel); 1091Throw(_curPos, ResXml.Xml_InvalidContentModel); 1100SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1105Throw(_curPos, ResXml.Xml_InvalidContentModel); 1162SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1187SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1199SendValidationEvent(XmlSeverityType.Error, ResXml.Sch_DupElement, name.ToString()); 1208SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1285Throw(_curPos - 5, ResXml.Xml_ExpectingWhiteSpace, "NDATA"); 1344SendValidationEvent(_curPos - notationName.Name.Length, XmlSeverityType.Error, ResXml.Sch_DupNotation, notationName.Name); 1407if (e.ResString == ResXml.Xml_UnexpectedEOF && _currentEntityId != 0) 1409SendValidationEvent(XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, null); 1447SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1472SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1481SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1507Throw(_curPos - systemId.Length - 1, ResXml.Xml_FragmentId, new string[] { systemId.Substring(systemId.IndexOf('#')), systemId }); 1537Throw(ResXml.Xml_ExpectingWhiteSpace, new string(_literalQuoteChar, 1), (int)_literalLineInfo.lineNo, (int)_literalLineInfo.linePos); 1554Throw(ResXml.Xml_ExpectingWhiteSpace, new string(_literalQuoteChar, 1), (int)_literalLineInfo.lineNo, (int)_literalLineInfo.linePos); 1638Throw(_curPos, ResXml.Xml_ExpectingWhiteSpace, ParseUnexpectedToken(_curPos)); 1697Throw(_curPos, ResXml.Xml_IncompleteDtdContent); 1726Throw(_curPos, ResXml.Xml_ExpectDtdMarkup); 1742Throw(_curPos, ResXml.Xml_ExpectDtdMarkup); 1754Throw(_curPos, ResXml.Xml_ExpectDtdMarkup); 1767Throw(_curPos, ResXml.Xml_ExpectDtdMarkup); 1784Throw(_curPos, ResXml.Xml_ExpectDtdMarkup); 1807Throw(_curPos, ResXml.Xml_ExpectDtdMarkup); 1815Throw(_curPos + 2, ResXml.Xml_ExpectDtdMarkup); 1827Throw(_curPos, ResXml.Xml_ExpectDtdMarkup); 1857Throw(_curPos, ResXml.Xml_ExpectDtdMarkup); 1863Throw(_charsUsed, ResXml.Xml_IncompleteDtdContent); 1896Throw(_curPos, ResXml.Xml_ExpectExternalOrClose); 1904Throw(_curPos, ResXml.Xml_ExpectExternalOrClose); 1918Throw(_curPos, ResXml.Xml_ExpectExternalOrClose); 1936Throw(_curPos, ResXml.Xml_ExpectSubOrClose); 1988Throw(_curPos, ResXml.Xml_InvalidContentModel); 1994Throw(_curPos, ResXml.Xml_IncompleteDtdContent); 2007Throw(_curPos, ResXml.Xml_IncompleteDtdContent); 2020Throw(_curPos + 1, ResXml.Xml_ExpectPcData); 2067Throw(_curPos, ResXml.Xml_ExpectNoWhitespace); 2094Throw(_curPos, ResXml.Xml_ExpectOp); 2140Throw(_curPos, ResXml.Xml_ExpectingWhiteSpace, ParseUnexpectedToken(_curPos)); 2165Throw(_curPos, ResXml.Xml_InvalidAttributeType1); 2177Throw(_curPos, ResXml.Xml_InvalidAttributeType); 2184Throw(_curPos, ResXml.Xml_InvalidAttributeType); 2192Throw(_curPos, ResXml.Xml_InvalidAttributeType); 2202Throw(_curPos, ResXml.Xml_InvalidAttributeType); 2213Throw(_curPos, ResXml.Xml_InvalidAttributeType); 2238Throw(_curPos, ResXml.Xml_InvalidAttributeType); 2248Throw(_curPos, ResXml.Xml_InvalidAttributeType); 2263Throw(_curPos, ResXml.Xml_InvalidAttributeType); 2268Throw(_curPos, ResXml.Xml_InvalidAttributeType); 2275Throw(_curPos, ResXml.Xml_IncompleteDtdContent); 2358Throw(_curPos, ResXml.Xml_ExpectAttType); 2370Throw(_curPos, ResXml.Xml_ExpectAttType); 2379Throw(_curPos, ResXml.Xml_ExpectAttType); 2385Throw(_curPos, ResXml.Xml_ExpectAttType); 2390Throw(_curPos, ResXml.Xml_ExpectAttType); 2396Throw(_curPos, ResXml.Xml_IncompleteDtdContent); 2524Throw(_curPos, ResXml.Xml_BadAttributeChar, XmlException.BuildCharExceptionArgs('<', '\0')); 2644Throw(_curPos, ResXml.Xml_UnclosedQuote); 2659Throw(ResXml.Xml_ErrorParsingEntityName, string.Empty, e.LineNumber, e.LinePosition); 2679Throw(_curPos, ResXml.Xml_ExpectExternalOrClose); 2687Throw(_curPos, ResXml.Xml_ExpectExternalOrClose); 2693Throw(_curPos, ResXml.Xml_ExpectExternalOrPublicId); 2735Throw(_curPos, ResXml.Xml_ExpectExternalOrClose); 2743Throw(_curPos, ResXml.Xml_ExpectExternalOrClose); 2755Throw(_curPos, ResXml.Xml_ExpectExternalIdOrEntityValue); 2816Throw(_curPos, ResXml.Xml_ExpectIgnoreOrInclude); 2863Throw(_curPos - 1, ResXml.Xml_ExpectIgnoreOrInclude); 2869Throw(_curPos, ResXml.Xml_IncompleteDtdContent); 2999Throw(_curPos, ResXml.Xml_UnclosedConditionalSection); 3042Throw(_curPos, ResXml.Xml_UnexpectedEOF, "Name"); 3046Throw(_curPos, ResXml.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(_chars, _charsUsed, _curPos)); 3080Throw(_curPos, ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')); 3105Throw(_curPos, ResXml.Xml_UnexpectedEOF, "Name"); 3159Throw(_curPos, ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_chars, _charsUsed, _curPos)); 3174Throw(_curPos, ResXml.Xml_UnexpectedEOF, "NmToken"); 3240Throw(_tokenStartPos, ResXml.Xml_ColonInLocalName, GetNameString()); 3333Throw(_curPos - entityName.Name.Length - 1, ResXml.Xml_InvalidParEntityRef); 3343Throw(_curPos - entityName.Name.Length - 1, paramEntity ? ResXml.Xml_RecursiveParEntity : ResXml.Xml_RecursiveGenEntity, entityName.Name); 3436SendValidationEvent(_curPos - entityName.Name.Length - 1, XmlSeverityType.Error, ResXml.Xml_UndeclaredParEntity, entityName.Name); 3445SendValidationEvent(_curPos - entityName.Name.Length - 1, XmlSeverityType.Error, ResXml.Xml_UndeclaredEntity, entityName.Name); 3450Throw(_curPos - entityName.Name.Length - 1, ResXml.Xml_UndeclaredEntity, entityName.Name); 3458Throw(_curPos - entityName.Name.Length - 1, ResXml.Xml_UnparsedEntityRef, entityName.Name); 3463Throw(_curPos - entityName.Name.Length - 1, ResXml.Xml_ExternalEntityInAttValue, entityName.Name); 3527Throw(_curPos, ResXml.Xml_InternalError); 3556Throw(pos, ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(data, invCharPos)); 3561Throw(invCharPos, ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(data, length, invCharPos)); 3574Throw(_curPos, ResXml.Xml_UnexpectedTokens2, new string[3] { unexpectedToken, expectedToken1, expectedToken2 }); 3578Throw(_curPos, ResXml.Xml_UnexpectedTokenEx, new string[2] { unexpectedToken, expectedToken1 });
FrameworkFork\Microsoft.Xml\Xml\schema\dtdvalidator.cs (20)
98SendValidationEvent(ResXml.Xml_NoDTDPresent, _name.ToString(), XmlSeverityType.Warning); 110SendValidationEvent(ResXml.Sch_StandAlone); 123SendValidationEvent(ResXml.Sch_InvalidPIComment); 135SendValidationEvent(ResXml.Sch_RootMatchDocType); 199SendValidationEvent(ResXml.Sch_UndeclaredAttribute, reader.Name); 250SendValidationEvent(ResXml.Sch_UndeclaredElement, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 309SendValidationEvent(ResXml.Sch_DupId, name); 379SendValidationEvent(ResXml.Sch_NotationValue, typedValue.ToString()); 383SendValidationEvent(ResXml.Sch_EnumerationValue, typedValue.ToString()); 390SendValidationEvent(ResXml.Sch_FixedAttributeValue, attdef.Name.ToString()); 394SendValidationEvent(ResXml.Sch_FixedElementValue, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 402SendValidationEvent(ResXml.Sch_AttributeValueDataType, attdef.Name.ToString()); 406SendValidationEvent(ResXml.Sch_ElementValueDataType, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 447throw new XmlException(ResXml.Xml_UndeclaredEntity, n); 452throw new XmlException(ResXml.Xml_UnparsedEntityRef, n); 457SendValidationEvent(ResXml.Sch_StandAlone); 491SendValidationEvent(new XmlSchemaException(ResXml.Sch_UndeclaredId, next.Id, reader.BaseURI, next.LineNo, next.LinePos)); 556XmlSchemaException e = new XmlSchemaException(ResXml.Sch_AttributeDefaultDataType, attdef.Name.ToString()); 605XmlSchemaException e = new XmlSchemaException(ResXml.Sch_EnumerationValue, typedValue.ToString(), baseUriStr, attdef.ValueLineNumber, attdef.ValueLinePosition); 621XmlSchemaException e = new XmlSchemaException(ResXml.Sch_AttributeDefaultDataType, attdef.Name.ToString());
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (120)
55CheckProhibitedFlag(facet, RestrictionFlags.Length, ResXml.Sch_LengthFacetProhibited); 56CheckDupFlag(facet, RestrictionFlags.Length, ResXml.Sch_DupLengthFacet); 57_derivedRestriction.Length = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(_nonNegativeInt, facet, ResXml.Sch_LengthFacetInvalid, null, null)); 63throw new XmlSchemaException(ResXml.Sch_FacetBaseFixed, facet); 70throw new XmlSchemaException(ResXml.Sch_LengthGtBaseLength, facet); 78throw new XmlSchemaException(ResXml.Sch_MaxMinLengthBaseLength, facet); 86throw new XmlSchemaException(ResXml.Sch_MaxMinLengthBaseLength, facet); 94CheckProhibitedFlag(facet, RestrictionFlags.MinLength, ResXml.Sch_MinLengthFacetProhibited); 95CheckDupFlag(facet, RestrictionFlags.MinLength, ResXml.Sch_DupMinLengthFacet); 96_derivedRestriction.MinLength = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(_nonNegativeInt, facet, ResXml.Sch_MinLengthFacetInvalid, null, null)); 102throw new XmlSchemaException(ResXml.Sch_FacetBaseFixed, facet); 109throw new XmlSchemaException(ResXml.Sch_MinLengthGtBaseMinLength, facet); 116throw new XmlSchemaException(ResXml.Sch_MaxMinLengthBaseLength, facet); 124CheckProhibitedFlag(facet, RestrictionFlags.MaxLength, ResXml.Sch_MaxLengthFacetProhibited); 125CheckDupFlag(facet, RestrictionFlags.MaxLength, ResXml.Sch_DupMaxLengthFacet); 126_derivedRestriction.MaxLength = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(_nonNegativeInt, facet, ResXml.Sch_MaxLengthFacetInvalid, null, null)); 132throw new XmlSchemaException(ResXml.Sch_FacetBaseFixed, facet); 139throw new XmlSchemaException(ResXml.Sch_MaxLengthGtBaseMaxLength, facet); 146throw new XmlSchemaException(ResXml.Sch_MaxMinLengthBaseLength, facet); 154CheckProhibitedFlag(facet, RestrictionFlags.Pattern, ResXml.Sch_PatternFacetProhibited); 173CheckProhibitedFlag(facet, RestrictionFlags.Enumeration, ResXml.Sch_EnumerationFacetProhibited); 178_derivedRestriction.Enumeration.Add(ParseFacetValue(_datatype, facet, ResXml.Sch_EnumerationFacetInvalid, nsmgr, nameTable)); 184CheckProhibitedFlag(facet, RestrictionFlags.WhiteSpace, ResXml.Sch_WhiteSpaceFacetProhibited); 185CheckDupFlag(facet, RestrictionFlags.WhiteSpace, ResXml.Sch_DupWhiteSpaceFacet); 200throw new XmlSchemaException(ResXml.Sch_InvalidWhiteSpace, facet.Value, facet); 206throw new XmlSchemaException(ResXml.Sch_FacetBaseFixed, facet); 223throw new XmlSchemaException(ResXml.Sch_WhiteSpaceRestriction1, facet); 229throw new XmlSchemaException(ResXml.Sch_WhiteSpaceRestriction2, facet); 236CheckProhibitedFlag(facet, RestrictionFlags.MaxInclusive, ResXml.Sch_MaxInclusiveFacetProhibited); 237CheckDupFlag(facet, RestrictionFlags.MaxInclusive, ResXml.Sch_DupMaxInclusiveFacet); 238_derivedRestriction.MaxInclusive = ParseFacetValue(_builtInType, facet, ResXml.Sch_MaxInclusiveFacetInvalid, null, null); 244throw new XmlSchemaException(ResXml.Sch_FacetBaseFixed, facet); 253CheckProhibitedFlag(facet, RestrictionFlags.MaxExclusive, ResXml.Sch_MaxExclusiveFacetProhibited); 254CheckDupFlag(facet, RestrictionFlags.MaxExclusive, ResXml.Sch_DupMaxExclusiveFacet); 255_derivedRestriction.MaxExclusive = ParseFacetValue(_builtInType, facet, ResXml.Sch_MaxExclusiveFacetInvalid, null, null); 261throw new XmlSchemaException(ResXml.Sch_FacetBaseFixed, facet); 270CheckProhibitedFlag(facet, RestrictionFlags.MinInclusive, ResXml.Sch_MinInclusiveFacetProhibited); 271CheckDupFlag(facet, RestrictionFlags.MinInclusive, ResXml.Sch_DupMinInclusiveFacet); 272_derivedRestriction.MinInclusive = ParseFacetValue(_builtInType, facet, ResXml.Sch_MinInclusiveFacetInvalid, null, null); 278throw new XmlSchemaException(ResXml.Sch_FacetBaseFixed, facet); 287CheckProhibitedFlag(facet, RestrictionFlags.MinExclusive, ResXml.Sch_MinExclusiveFacetProhibited); 288CheckDupFlag(facet, RestrictionFlags.MinExclusive, ResXml.Sch_DupMinExclusiveFacet); 289_derivedRestriction.MinExclusive = ParseFacetValue(_builtInType, facet, ResXml.Sch_MinExclusiveFacetInvalid, null, null); 295throw new XmlSchemaException(ResXml.Sch_FacetBaseFixed, facet); 304CheckProhibitedFlag(facet, RestrictionFlags.TotalDigits, ResXml.Sch_TotalDigitsFacetProhibited); 305CheckDupFlag(facet, RestrictionFlags.TotalDigits, ResXml.Sch_DupTotalDigitsFacet); 307_derivedRestriction.TotalDigits = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(positiveInt, facet, ResXml.Sch_TotalDigitsFacetInvalid, null, null)); 313throw new XmlSchemaException(ResXml.Sch_FacetBaseFixed, facet); 320throw new XmlSchemaException(ResXml.Sch_TotalDigitsMismatch, string.Empty); 328CheckProhibitedFlag(facet, RestrictionFlags.FractionDigits, ResXml.Sch_FractionDigitsFacetProhibited); 329CheckDupFlag(facet, RestrictionFlags.FractionDigits, ResXml.Sch_DupFractionDigitsFacet); 330_derivedRestriction.FractionDigits = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(_nonNegativeInt, facet, ResXml.Sch_FractionDigitsFacetInvalid, null, null)); 334throw new XmlSchemaException(ResXml.Sch_FractionDigitsFacetInvalid, ResXml.Sch_FractionDigitsNotOnDecimal, facet); 340throw new XmlSchemaException(ResXml.Sch_TotalDigitsMismatch, string.Empty); 370throw new XmlSchemaException(ResXml.Sch_PatternFacetInvalid, new string[] { e.Message }, e, _pattern_facet.SourceUri, _pattern_facet.LineNumber, _pattern_facet.LinePosition, _pattern_facet); 385throw new XmlSchemaException(ResXml.Sch_MaxInclusiveMismatch, string.Empty); 392throw new XmlSchemaException(ResXml.Sch_MaxIncExlMismatch, string.Empty); 402throw new XmlSchemaException(ResXml.Sch_MaxExclusiveMismatch, string.Empty); 409throw new XmlSchemaException(ResXml.Sch_MaxExlIncMismatch, string.Empty); 419throw new XmlSchemaException(ResXml.Sch_MinInclusiveMismatch, string.Empty); 426throw new XmlSchemaException(ResXml.Sch_MinIncExlMismatch, string.Empty); 433throw new XmlSchemaException(ResXml.Sch_MinIncMaxExlMismatch, string.Empty); 443throw new XmlSchemaException(ResXml.Sch_MinExclusiveMismatch, string.Empty); 450throw new XmlSchemaException(ResXml.Sch_MinExlIncMismatch, string.Empty); 457throw new XmlSchemaException(ResXml.Sch_MinExlMaxExlMismatch, string.Empty); 477throw new XmlSchemaException(ResXml.Sch_MaxInclusiveExclusive, string.Empty); 484throw new XmlSchemaException(ResXml.Sch_MinInclusiveExclusive, string.Empty); 491throw new XmlSchemaException(ResXml.Sch_LengthAndMinMax, string.Empty); 504throw new XmlSchemaException(ResXml.Sch_MinLengthGtMaxLength, string.Empty); 516throw new XmlSchemaException(ResXml.Sch_MinInclusiveGtMaxInclusive, string.Empty); 526throw new XmlSchemaException(ResXml.Sch_MinInclusiveGtMaxExclusive, string.Empty); 536throw new XmlSchemaException(ResXml.Sch_MinExclusiveGtMaxExclusive, string.Empty); 546throw new XmlSchemaException(ResXml.Sch_MinExclusiveGtMaxInclusive, string.Empty); 553throw new XmlSchemaException(ResXml.Sch_FractionDigitsGtTotalDigits, string.Empty); 885return new XmlSchemaException(ResXml.Sch_PatternConstraintFailed, string.Empty); 909throw new XmlSchemaException(ResXml.Sch_InvalidFacet, facet); 963throw new XmlSchemaException(ResXml.Sch_UnknownFacet, facet); 1020return new OverflowException(string.Format(ResXml.XmlConvert_Overflow, value.ToString(), datatype.TypeCodeString)); 1029return new XmlSchemaException(ResXml.Sch_MaxInclusiveConstraintFailed, string.Empty); 1037return new XmlSchemaException(ResXml.Sch_MaxExclusiveConstraintFailed, string.Empty); 1045return new XmlSchemaException(ResXml.Sch_MinInclusiveConstraintFailed, string.Empty); 1053return new XmlSchemaException(ResXml.Sch_MinExclusiveConstraintFailed, string.Empty); 1060return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1121return new XmlSchemaException(ResXml.Sch_TotalDigitsConstraintFailed, string.Empty); 1125return new XmlSchemaException(ResXml.Sch_FractionDigitsConstraintFailed, string.Empty); 1150return new XmlSchemaException(ResXml.Sch_MaxInclusiveConstraintFailed, string.Empty); 1157return new XmlSchemaException(ResXml.Sch_MaxExclusiveConstraintFailed, string.Empty); 1165return new XmlSchemaException(ResXml.Sch_MinInclusiveConstraintFailed, string.Empty); 1173return new XmlSchemaException(ResXml.Sch_MinExclusiveConstraintFailed, string.Empty); 1180return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1225return new XmlSchemaException(ResXml.Sch_MaxInclusiveConstraintFailed, string.Empty); 1233return new XmlSchemaException(ResXml.Sch_MaxExclusiveConstraintFailed, string.Empty); 1241return new XmlSchemaException(ResXml.Sch_MinInclusiveConstraintFailed, string.Empty); 1249return new XmlSchemaException(ResXml.Sch_MinExclusiveConstraintFailed, string.Empty); 1256return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1296return new XmlSchemaException(ResXml.Sch_MaxInclusiveConstraintFailed, string.Empty); 1304return new XmlSchemaException(ResXml.Sch_MaxExclusiveConstraintFailed, string.Empty); 1312return new XmlSchemaException(ResXml.Sch_MinInclusiveConstraintFailed, string.Empty); 1320return new XmlSchemaException(ResXml.Sch_MinExclusiveConstraintFailed, string.Empty); 1327return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1396return new XmlSchemaException(ResXml.Sch_LengthConstraintFailed, string.Empty); 1403return new XmlSchemaException(ResXml.Sch_MinLengthConstraintFailed, string.Empty); 1410return new XmlSchemaException(ResXml.Sch_MaxLengthConstraintFailed, string.Empty); 1417return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1479return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 1483return new XmlSchemaException(ResXml.Sch_InvalidLanguageId, string.Empty); 1528return new XmlSchemaException(ResXml.Sch_LengthConstraintFailed, string.Empty); 1535return new XmlSchemaException(ResXml.Sch_MinLengthConstraintFailed, string.Empty); 1542return new XmlSchemaException(ResXml.Sch_MaxLengthConstraintFailed, string.Empty); 1549return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1597return new XmlSchemaException(ResXml.Sch_LengthConstraintFailed, string.Empty); 1604return new XmlSchemaException(ResXml.Sch_MinLengthConstraintFailed, string.Empty); 1611return new XmlSchemaException(ResXml.Sch_MaxLengthConstraintFailed, string.Empty); 1618return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1660return new XmlSchemaException(ResXml.Sch_LengthConstraintFailed, string.Empty); 1668return new XmlSchemaException(ResXml.Sch_MinLengthConstraintFailed, string.Empty); 1676return new XmlSchemaException(ResXml.Sch_MaxLengthConstraintFailed, string.Empty); 1684return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1714return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (20)
218throw new XmlSchemaInferenceException(ResXml.SchInf_schema, 0, 0); 283throw new XmlSchemaInferenceException(ResXml.SchInf_NoElement, 0, 0); 292throw new XmlSchemaInferenceException(ResXml.SchInf_schema, 0, 0); 515throw new XmlSchemaInferenceException(ResXml.SchInf_schema, 0, 0); 717throw new XmlSchemaInferenceException(ResXml.SchInf_entity, 0, 0); 936throw new XmlSchemaInferenceException(ResXml.SchInf_particle, 0, 0); 966throw new XmlSchemaInferenceException(ResXml.SchInf_ct, 0, 0); 973throw new XmlSchemaInferenceException(ResXml.SchInf_entity, 0, 0); 991throw new XmlSchemaInferenceException(ResXml.SchInf_seq, 0, 0); 1003throw new XmlSchemaInferenceException(ResXml.SchInf_simplecontent, 0, 0); 1008throw new XmlSchemaInferenceException(ResXml.SchInf_extension, 0, 0); 1057throw new XmlSchemaInferenceException(ResXml.SchInf_schema, 0, 0); 1085throw new XmlSchemaInferenceException(ResXml.SchInf_UnknownParticle, 0, 0); 1113throw new XmlSchemaInferenceException(ResXml.SchInf_UnknownParticle, 0, 0); 1143throw new XmlSchemaInferenceException(ResXml.SchInf_UnknownParticle, 0, 0); 1217throw new XmlSchemaInferenceException(ResXml.SchInf_noseq, 0, 0); 1230throw new XmlSchemaInferenceException(ResXml.SchInf_schema, 0, 0); 1247throw new XmlSchemaInferenceException(ResXml.Sch_NotXsiAttribute, localName); 1420throw new XmlSchemaInferenceException(ResXml.SchInf_noct, 0, 0); 2525throw new XmlSchemaInferenceException(ResXml.SchInf_schematype, 0, 0);
FrameworkFork\Microsoft.Xml\Xml\schema\Parser.cs (5)
114code = ResXml.Sch_MixSchemaTypes; 122code = ResXml.Sch_XSDSchemaOnly; 127code = ResXml.Sch_MixSchemaTypes; 134code = ResXml.Sch_SchemaRootExpected; 137code = ResXml.Sch_XSDSchemaRootExpected;
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (117)
118SendValidationEvent(ResXml.Sch_MismatchTargetNamespaceEx, targetNamespace, _rootSchema.TargetNamespace, _rootSchema); 349SendValidationEvent(new XmlSchemaException(ResXml.Sch_InvalidIncludeLocation, null, innerException, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning); 399SendValidationEvent(ResXml.Sch_InvalidIncludeLocation, include, XmlSeverityType.Warning); 414SendValidationEvent(ResXml.Sch_CannotLoadSchemaLocation, schemaLocation, e.Message, e.SourceUri, e.LineNumber, e.LinePosition); 418SendValidationEvent(new XmlSchemaException(ResXml.Sch_InvalidIncludeLocation, null, eInner, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning); 428SendValidationEvent(new XmlSchemaException(ResXml.Sch_InvalidIncludeLocation, null, innerException, include.SourceUri, include.LineNumber, include.LinePosition, include), XmlSeverityType.Warning); 557SendValidationEvent(ResXml.Sch_InvalidTargetNamespaceAttribute, schema); 561ParseUri(tns, ResXml.Sch_InvalidNamespace, schema); 571SendValidationEvent(ResXml.Sch_AttributeValueDataTypeDetailed, new string[] { "version", schema.Version, tokenDt.TypeCodeString, exception.Message }, exception, schema); 591ParseUri(loc, ResXml.Sch_InvalidSchemaLocation, include); 595SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "schemaLocation", include); 605SendValidationEvent(ResXml.Sch_ImportTargetNamespace, include); 611SendValidationEvent(ResXml.Sch_MismatchTargetNamespaceImport, importNS, externalSchema.TargetNamespace, import); 625SendValidationEvent(ResXml.Sch_InvalidNamespaceAttribute, importNS, include); 629ParseUri(importNS, ResXml.Sch_InvalidNamespace, include); 657SendValidationEvent(ResXml.Sch_MismatchTargetNamespaceInclude, externalSchema.TargetNamespace, schema.TargetNamespace, include); 743SendValidationEvent(ResXml.Sch_RedefineNoSchema, redefine); 806SendValidationEvent(ResXml.Sch_InvalidCollection, (XmlSchemaObject)schemaItems[i]); 861SendValidationEvent(ResXml.Sch_MultipleRedefine, redefine, XmlSeverityType.Warning); 882SendValidationEvent(ResXml.Sch_GroupDoubleRedefine, group); 891SendValidationEvent(ResXml.Sch_ComponentRedefineNotFound, "<group>", group.QualifiedName.ToString(), group); 908SendValidationEvent(ResXml.Sch_AttrGroupDoubleRedefine, attributeGroup); 917SendValidationEvent(ResXml.Sch_ComponentRedefineNotFound, "<attributeGroup>", attributeGroup.QualifiedName.ToString(), attributeGroup); 934SendValidationEvent(ResXml.Sch_ComplexTypeDoubleRedefine, complexType); 943SendValidationEvent(ResXml.Sch_ComponentRedefineNotFound, "<complexType>", complexType.QualifiedName.ToString(), complexType); 953SendValidationEvent(ResXml.Sch_SimpleToComplexTypeRedefine, complexType); 964SendValidationEvent(ResXml.Sch_SimpleTypeDoubleRedefine, simpleType); 973SendValidationEvent(ResXml.Sch_ComponentRedefineNotFound, "<simpleType>", simpleType.QualifiedName.ToString(), simpleType); 983SendValidationEvent(ResXml.Sch_ComplexToSimpleTypeRedefine, simpleType); 1036SendValidationEvent(ResXml.Sch_InvalidBlockDefaultValue, schema); 1052SendValidationEvent(ResXml.Sch_InvalidFinalDefaultValue, schema); 1081SendValidationEvent(ResXml.Sch_MinMaxGroupRedefine, groupRef); 1107SendValidationEvent(ResXml.Sch_MultipleGroupSelfRef, group); 1125SendValidationEvent(ResXml.Sch_MultipleAttrGroupSelfRef, attributeGroup); 1140SendValidationEvent(ResXml.Sch_InvalidTypeRedefine, stype); 1177SendValidationEvent(ResXml.Sch_InvalidTypeRedefine, ctype); 1189SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", attribute); 1193SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "use", attribute); 1197SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "form", attribute); 1216SendValidationEvent(ResXml.Sch_AttributeNameRef, "???", attribute); 1229SendValidationEvent(ResXml.Sch_InvalidAttributeRef, attribute); 1242SendValidationEvent(ResXml.Sch_TargetNamespaceXsi, attribute); 1247SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "ref", attribute); 1251SendValidationEvent(ResXml.Sch_DefaultFixedAttributes, attribute); 1255SendValidationEvent(ResXml.Sch_OptionalDefaultAttribute, attribute); 1259SendValidationEvent(ResXml.Sch_XmlNsAttribute, attribute); 1266SendValidationEvent(ResXml.Sch_TypeMutualExclusive, attribute); 1285SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", attributeGroup); 1301SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", element); 1324SendValidationEvent(ResXml.Sch_InvalidElementFinalValue, element); 1330SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "form", element); 1334SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "minOccurs", element); 1338SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "maxOccurs", element); 1360SendValidationEvent(ResXml.Sch_ElementNameRef, element); 1376SendValidationEvent(ResXml.Sch_InvalidElementRef, element); 1380SendValidationEvent(ResXml.Sch_DefaultFixedAttributes, element); 1387SendValidationEvent(ResXml.Sch_MinGtMax, element); 1391SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "abstract", element); 1395SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "final", element); 1399SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "substitutionGroup", element); 1409SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "ref", element); 1430SendValidationEvent(ResXml.Sch_InvalidElementBlockValue, element); 1439SendValidationEvent(ResXml.Sch_TypeMutualExclusive, element); 1456SendValidationEvent(ResXml.Sch_DefaultFixedAttributes, element); 1478SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", constraint); 1484SendValidationEvent(ResXml.Sch_DupIdentityConstraint, constraint.QualifiedName.ToString(), constraint); 1494SendValidationEvent(ResXml.Sch_IdConstraintNoSelector, constraint); 1499SendValidationEvent(ResXml.Sch_IdConstraintNoFields, constraint); 1507SendValidationEvent(ResXml.Sch_IdConstraintNoRefer, constraint); 1534SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "name", simpleType); 1546SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", simpleType); 1568SendValidationEvent(ResXml.Sch_InvalidSimpleTypeFinalValue, simpleType); 1576SendValidationEvent(ResXml.Sch_NoSimpleTypeContent, simpleType); 1592SendValidationEvent(ResXml.Sch_SimpleTypeRestRefBase, restriction); 1600SendValidationEvent(ResXml.Sch_SimpleTypeRestRefBaseNone, restriction); 1619SendValidationEvent(ResXml.Sch_SimpleTypeListRefBase, list); 1628SendValidationEvent(ResXml.Sch_SimpleTypeListRefBaseNone, list); 1655SendValidationEvent(ResXml.Sch_SimpleTypeUnionNoBase, union1); 1675SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "name", complexType); 1687SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", complexType); 1701SendValidationEvent(ResXml.Sch_InvalidComplexTypeBlockValue, complexType); 1724SendValidationEvent(ResXml.Sch_InvalidComplexTypeFinalValue, complexType); 1746SendValidationEvent(ResXml.Sch_NoRestOrExt, complexType); 1750SendValidationEvent(ResXml.Sch_NoRestOrExtQName, complexType.QualifiedName.Name, complexType.QualifiedName.Namespace, complexType); 1763SendValidationEvent(ResXml.Sch_MissAttribute, "base", contentExtension); 1777SendValidationEvent(ResXml.Sch_MissAttribute, "base", contentRestriction); 1801SendValidationEvent(ResXml.Sch_NoRestOrExt, complexType); 1805SendValidationEvent(ResXml.Sch_NoRestOrExtQName, complexType.QualifiedName.Name, complexType.QualifiedName.Namespace, complexType); 1822SendValidationEvent(ResXml.Sch_MissAttribute, "base", contentExtension); 1841SendValidationEvent(ResXml.Sch_MissAttribute, "base", contentRestriction); 1880SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", group); 1884SendValidationEvent(ResXml.Sch_NoGroupParticle, group); 1889SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "minOccurs", group.Particle); 1893SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "maxOccurs", group.Particle); 1910SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", notation); 1914SendValidationEvent(ResXml.Sch_MissingPublicSystemAttribute, notation); 1926SendValidationEvent(ResXml.Sch_InvalidPublicAttribute, new string[] { notation.Public }, eInner, notation); 1931ParseUri(notation.System, ResXml.Sch_InvalidSystemAttribute, notation); 1947SendValidationEvent(ResXml.Sch_InvalidAllMin, particle); 1952SendValidationEvent(ResXml.Sch_InvalidAllMax, particle); 1961SendValidationEvent(ResXml.Sch_InvalidAllElementMax, element); 1972SendValidationEvent(ResXml.Sch_MinGtMax, particle); 2013SendValidationEvent(ResXml.Sch_MissAttribute, "ref", groupRef); 2028SendValidationEvent(ResXml.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, particle); 2051SendValidationEvent(ResXml.Sch_MissAttribute, "ref", attributeGroupRef); 2071SendValidationEvent(ResXml.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, anyAttribute); 2087SendValidationEvent(ResXml.Sch_InvalidIdAttribute, new string[] { ex.Message }, ex, xso); 2092SendValidationEvent(ResXml.Sch_InvalidIdAttribute, ResXml.Sch_NullValue, xso); 2101SendValidationEvent(ResXml.Sch_DupIdAttribute, xso); 2111SendValidationEvent(ResXml.Sch_InvalidNameAttributeEx, null, ResXml.Sch_NullValue, xso); 2119string innerStr = string.Format(ResXml.Xml_BadNameCharWithPos, invCharArgs[0], invCharArgs[1], len); 2120SendValidationEvent(ResXml.Sch_InvalidNameAttributeEx, name, innerStr, xso); 2140SendValidationEvent(ResXml.Sch_UnrefNS, value.Namespace, xso, XmlSeverityType.Warning); 2145SendValidationEvent(ResXml.Sch_InvalidAttribute, new string[] { attributeName, fx.Message }, fx, xso); 2149SendValidationEvent(ResXml.Sch_InvalidAttribute, new string[] { attributeName, ex.Message }, ex, xso);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaAttDef.cs (1)
220validationEventHandling.SendEvent(new XmlSchemaException(ResXml.Sch_XmlSpace, string.Empty), XmlSeverityType.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (81)
426SendValidationEvent(ResXml.Sch_SubstitutionCircularRef, (XmlSchemaElement)substitutionGroup.Members[0]); 439SendValidationEvent(ResXml.Sch_InvalidExamplar, examplar); 465SendValidationEvent(ResXml.Sch_NoExamplar, (XmlSchemaElement)substitutionGroup.Members[0]); 483SendValidationEvent(ResXml.Sch_InvalidSubstitutionMember, (element.QualifiedName).ToString(), (examplar.QualifiedName).ToString(), element); 494SendValidationEvent(ResXml.Sch_GroupCircularRef, group); 513throw new XmlSchemaException(ResXml.Sch_TypeCircularRef, simpleType); 540SendValidationEvent(ResXml.Sch_BaseFinalList, simpleType); 547throw new XmlSchemaException(ResXml.Sch_UndeclaredSimpleType, list.ItemTypeName.ToString(), simpleType); 573throw new XmlSchemaException(ResXml.Sch_InvalidSimpleTypeRestriction, restriction.BaseTypeName.ToString(), simpleType); 580SendValidationEvent(ResXml.Sch_BaseFinalRestriction, simpleType); 587throw new XmlSchemaException(ResXml.Sch_UndeclaredSimpleType, restriction.BaseTypeName.ToString(), simpleType); 647SendValidationEvent(ResXml.Sch_BaseFinalUnion, simpleType); 652throw new XmlSchemaException(ResXml.Sch_UndeclaredSimpleType, mainMemberTypes[i].ToString(), simpleType); 685SendValidationEvent(ResXml.Sch_UnionFromUnion, parentType); 702SendValidationEvent(ResXml.Sch_TypeCircularRef, complexType); 752SendValidationEvent(ResXml.Sch_TwoIdAttrUses, complexType); 807SendValidationEvent(ResXml.Sch_UndeclaredType, simpleExtension.BaseTypeName.ToString(), complexType); 820SendValidationEvent(ResXml.Sch_BaseFinalExtension, complexType); 824SendValidationEvent(ResXml.Sch_NotSimpleContent, complexType); 846SendValidationEvent(ResXml.Sch_UndefBaseRestriction, simpleRestriction.BaseTypeName.ToString(), simpleRestriction); 862SendValidationEvent(ResXml.Sch_DerivedNotFromBase, simpleRestriction); 877SendValidationEvent(ResXml.Sch_NeedSimpleTypeChild, simpleRestriction); 882SendValidationEvent(ResXml.Sch_NotSimpleContent, complexType); 889SendValidationEvent(ResXml.Sch_BaseFinalRestriction, complexType); 929SendValidationEvent(ResXml.Sch_UndefBaseExtension, complexExtension.BaseTypeName.ToString(), complexExtension); 937SendValidationEvent(ResXml.Sch_NotComplexContent, complexType); 944SendValidationEvent(ResXml.Sch_BaseFinalExtension, complexType); 971SendValidationEvent(ResXml.Sch_DifContentType, complexType); 995SendValidationEvent(ResXml.Sch_UndefBaseRestriction, complexRestriction.BaseTypeName.ToString(), complexRestriction); 1003SendValidationEvent(ResXml.Sch_NotComplexContent, complexType); 1010SendValidationEvent(ResXml.Sch_BaseFinalRestriction, complexType); 1024SendValidationEvent(ResXml.Sch_InvalidContentRestriction, complexType); 1050SendValidationEvent(ResXml.Sch_InvalidParticleRestriction, complexType); 1063SendValidationEvent(ResXml.Sch_EmptyChoice, choice, XmlSeverityType.Warning); 1138SendValidationEvent(ResXml.Sch_UndefGroupRef, groupRef.RefName.ToString(), groupRef); 1154SendValidationEvent(ResXml.Sch_AllRefNotRoot, "", groupRef); 1159SendValidationEvent(ResXml.Sch_AllRefMinMax, groupRef); 1167SendValidationEvent(ResXml.Sch_EmptyChoice, groupRef, XmlSeverityType.Warning); 1224SendValidationEvent(ResXml.Sch_NotAllAlone, all); 1266SendValidationEvent(ResXml.Sch_EmptyChoice, oldChoice, XmlSeverityType.Warning); 1720SendValidationEvent(ResXml.Sch_AttributeGroupCircularRef, attributeGroup); 1744SendValidationEvent(ResXml.Sch_DupAttributeUse, attribute.QualifiedName.ToString(), attribute); 1770SendValidationEvent(ResXml.Sch_DupAttributeUse, attributeValue.QualifiedName.ToString(), attributeValue); 1777SendValidationEvent(ResXml.Sch_UndefAttributeGroupRef, attributeGroupRef.RefName.ToString(), attributeGroupRef); 1806SendValidationEvent(ResXml.Sch_DupAttributeUse, attribute.QualifiedName.ToString(), attribute); 1811SendValidationEvent(ResXml.Sch_AttributeIgnored, attribute.QualifiedName.ToString(), attribute, XmlSeverityType.Warning); 1832SendValidationEvent(ResXml.Sch_DupAttributeUse, attributeValue.QualifiedName.ToString(), attributeGroupRef); 1837SendValidationEvent(ResXml.Sch_AttributeIgnored, attributeValue.QualifiedName.ToString(), attributeValue, XmlSeverityType.Warning); 1844SendValidationEvent(ResXml.Sch_UndefAttributeGroupRef, attributeGroupRef.RefName.ToString(), attributeGroupRef); 1863SendValidationEvent(ResXml.Sch_InvalidAttributeExtension, attribute); 1877SendValidationEvent(ResXml.Sch_InvalidAnyAttributeRestriction, derivedType); 1906SendValidationEvent(ResXml.Sch_AttributeRestrictionProhibited, attribute); 1914SendValidationEvent(ResXml.Sch_AttributeRestrictionInvalid, attribute); 1939SendValidationEvent(ResXml.Sch_AttributeRestrictionInvalidFromWildcard, attribute); 2023SendValidationEvent(ResXml.Sch_UnexpressibleAnyAttribute, a); 2044SendValidationEvent(ResXml.Sch_UnexpressibleAnyAttribute, a); 2054SendValidationEvent(ResXml.Sch_AttributeCircularRef, xa); 2070throw new XmlSchemaException(ResXml.Sch_UndeclaredAttribute, xa.RefName.ToString(), xa); 2075throw new XmlSchemaException(ResXml.Sch_RefInvalidAttribute, xa.RefName.ToString(), xa); 2084throw new XmlSchemaException(ResXml.Sch_FixedDefaultInRef, xa.RefName.ToString(), xa); 2090throw new XmlSchemaException(ResXml.Sch_FixedInRef, xa.RefName.ToString(), xa); 2133throw new XmlSchemaException(ResXml.Sch_UndeclaredSimpleType, xa.SchemaTypeName.ToString(), xa); 2202SendValidationEvent(ResXml.Sch_IdentityConstraintCircularRef, xi); 2222throw new XmlSchemaException(ResXml.Sch_UndeclaredIdentityConstraint, ((XmlSchemaKeyref)xi).Refer.ToString(), xi); 2227throw new XmlSchemaException(ResXml.Sch_RefInvalidIdentityConstraint, ((XmlSchemaKeyref)xi).Refer.ToString(), xi); 2232throw new XmlSchemaException(ResXml.Sch_RefInvalidCardin, xi.QualifiedName.ToString(), xi); 2237throw new XmlSchemaException(ResXml.Sch_ReftoKeyref, xi.QualifiedName.ToString(), xi); 2262SendValidationEvent(ResXml.Sch_ElementCircularRef, xe); 2278throw new XmlSchemaException(ResXml.Sch_UndeclaredElement, xe.RefName.ToString(), xe); 2283throw new XmlSchemaException(ResXml.Sch_RefInvalidElement, xe.RefName.ToString(), xe); 2299throw new XmlSchemaException(ResXml.Sch_UndeclaredType, xe.SchemaTypeName.ToString(), xe); 2307throw new XmlSchemaException(ResXml.Sch_UndeclaredEquivClass, xe.SubstitutionGroup.Name.ToString(), xe); 2392throw new XmlSchemaException(ResXml.Sch_ElementCannotHaveValue, xe); 2459SendValidationEvent(ResXml.Sch_DupElement, localElement.QualifiedName.ToString(), localElement); 2483SendValidationEvent(ResXml.Sch_NonDeterministic, ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaElement)e.Particle2); 2487SendValidationEvent(ResXml.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle2).NamespaceList.ToString(), ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaAny)e.Particle2); 2494SendValidationEvent(ResXml.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle1).NamespaceList.ToString(), ((XmlSchemaElement)e.Particle2).QualifiedName.ToString(), (XmlSchemaAny)e.Particle1); 2498SendValidationEvent(ResXml.Sch_NonDeterministicAnyAny, ((XmlSchemaAny)e.Particle1).NamespaceList.ToString(), ((XmlSchemaAny)e.Particle2).NamespaceList.ToString(), (XmlSchemaAny)e.Particle1); 2505SendValidationEvent(ResXml.Sch_ComplexContentModel, complexType, XmlSeverityType.Warning); 2682SendValidationEvent(ResXml.Sch_ElementTypeCollision, particle); 2700SendValidationEvent(ResXml.Sch_TypeCircularRef, complexType);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (112)
245SendValidationEventNoThrow(new XmlSchemaException(ResXml.Sch_CannotLoadSchema, new string[] { schemaLocation, e.Message }, e.SourceUri, e.LineNumber, e.LinePosition), XmlSeverityType.Error); 249SendValidationEvent(ResXml.Sch_InvalidIncludeLocation, include, XmlSeverityType.Warning); 258SendValidationEvent(ResXml.Sch_InvalidIncludeLocation, include, XmlSeverityType.Warning); 305SendValidationEvent(ResXml.Sch_InvalidTargetNamespaceAttribute, schema); 315SendValidationEvent(ResXml.Sch_InvalidNamespace, schema.TargetNamespace, schema); 328SendValidationEvent(ResXml.Sch_AttributeValueDataType, "version", schema); 344SendValidationEvent(ResXml.Sch_MismatchTargetNamespaceEx, targetNamespace, schema.TargetNamespace, schema); 350SendValidationEvent(ResXml.Sch_MismatchTargetNamespaceImport, targetNamespace, schema.TargetNamespace, schema); 358SendValidationEvent(ResXml.Sch_MismatchTargetNamespaceInclude, targetNamespace, schema.TargetNamespace, schema); 379SendValidationEvent(ResXml.Sch_InvalidSchemaLocation, loc, include); 384SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "schemaLocation", include); 396SendValidationEvent(ResXml.Sch_ImportTargetNamespaceNull, include); 400SendValidationEvent(ResXml.Sch_ImportTargetNamespace, include); 416SendValidationEvent(ResXml.Sch_InvalidNamespaceAttribute, ns, include); 426SendValidationEvent(ResXml.Sch_InvalidNamespace, ns, include); 451SendValidationEvent(ResXml.Sch_InvalidBlockDefaultValue, schema); 467SendValidationEvent(ResXml.Sch_InvalidFinalDefaultValue, schema); 498SendValidationEvent(ResXml.Sch_RedefineNoSchema, redefine); 583SendValidationEvent(ResXml.Sch_InvalidCollection, schema.Items[i]); 606SendValidationEvent(ResXml.Sch_GroupDoubleRedefine, group); 618SendValidationEvent(ResXml.Sch_GroupRedefineNotFound, group); 628SendValidationEvent(ResXml.Sch_AttrGroupDoubleRedefine, attributeGroup); 640SendValidationEvent(ResXml.Sch_AttrGroupRedefineNotFound, attributeGroup); 650SendValidationEvent(ResXml.Sch_ComplexTypeDoubleRedefine, complexType); 665SendValidationEvent(ResXml.Sch_SimpleToComplexTypeRedefine, complexType); 670SendValidationEvent(ResXml.Sch_ComplexTypeRedefineNotFound, complexType); 680SendValidationEvent(ResXml.Sch_SimpleTypeDoubleRedefine, simpleType); 695SendValidationEvent(ResXml.Sch_ComplexToSimpleTypeRedefine, simpleType); 700SendValidationEvent(ResXml.Sch_SimpleTypeRedefineNotFound, simpleType); 732SendValidationEvent(ResXml.Sch_MinMaxGroupRedefine, groupRef); 758SendValidationEvent(ResXml.Sch_MultipleGroupSelfRef, group); 775SendValidationEvent(ResXml.Sch_MultipleAttrGroupSelfRef, attributeGroup); 789SendValidationEvent(ResXml.Sch_InvalidTypeRedefine, stype); 826SendValidationEvent(ResXml.Sch_InvalidTypeRedefine, ctype); 838SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", attribute); 842SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "use", attribute); 846SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "form", attribute); 865SendValidationEvent(ResXml.Sch_AttributeNameRef, "???", attribute); 878SendValidationEvent(ResXml.Sch_InvalidAttributeRef, attribute); 890SendValidationEvent(ResXml.Sch_TargetNamespaceXsi, attribute); 894SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "ref", attribute); 898SendValidationEvent(ResXml.Sch_DefaultFixedAttributes, attribute); 902SendValidationEvent(ResXml.Sch_OptionalDefaultAttribute, attribute); 906SendValidationEvent(ResXml.Sch_XmlNsAttribute, attribute); 913SendValidationEvent(ResXml.Sch_TypeMutualExclusive, attribute); 932SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", attributeGroup); 948SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", element); 971SendValidationEvent(ResXml.Sch_InvalidElementFinalValue, element); 977SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "form", element); 981SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "minOccurs", element); 985SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "maxOccurs", element); 1007SendValidationEvent(ResXml.Sch_ElementNameRef, element); 1023SendValidationEvent(ResXml.Sch_InvalidElementRef, element); 1027SendValidationEvent(ResXml.Sch_DefaultFixedAttributes, element); 1034SendValidationEvent(ResXml.Sch_MinGtMax, element); 1038SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "abstract", element); 1042SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "final", element); 1046SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "substitutionGroup", element); 1056SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "ref", element); 1077SendValidationEvent(ResXml.Sch_InvalidElementBlockValue, element); 1086SendValidationEvent(ResXml.Sch_TypeMutualExclusive, element); 1103SendValidationEvent(ResXml.Sch_DefaultFixedAttributes, element); 1123SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", constraint); 1129SendValidationEvent(ResXml.Sch_DupIdentityConstraint, constraint.QualifiedName.ToString(), constraint); 1139SendValidationEvent(ResXml.Sch_IdConstraintNoSelector, constraint); 1144SendValidationEvent(ResXml.Sch_IdConstraintNoFields, constraint); 1152SendValidationEvent(ResXml.Sch_IdConstraintNoRefer, constraint); 1179SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "name", simpleType); 1191SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", simpleType); 1213SendValidationEvent(ResXml.Sch_InvalidSimpleTypeFinalValue, simpleType); 1221SendValidationEvent(ResXml.Sch_NoSimpleTypeContent, simpleType); 1237SendValidationEvent(ResXml.Sch_SimpleTypeRestRefBase, restriction); 1245SendValidationEvent(ResXml.Sch_SimpleTypeRestRefBaseNone, restriction); 1264SendValidationEvent(ResXml.Sch_SimpleTypeListRefBase, list); 1273SendValidationEvent(ResXml.Sch_SimpleTypeListRefBaseNone, list); 1299SendValidationEvent(ResXml.Sch_SimpleTypeUnionNoBase, union1); 1318SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "name", complexType); 1330SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", complexType); 1344SendValidationEvent(ResXml.Sch_InvalidComplexTypeBlockValue, complexType); 1367SendValidationEvent(ResXml.Sch_InvalidComplexTypeFinalValue, complexType); 1389SendValidationEvent(ResXml.Sch_NoRestOrExt, complexType); 1393SendValidationEvent(ResXml.Sch_NoRestOrExtQName, complexType.QualifiedName.Name, complexType.QualifiedName.Namespace, complexType); 1406SendValidationEvent(ResXml.Sch_MissAttribute, "base", contentExtension); 1420SendValidationEvent(ResXml.Sch_MissAttribute, "base", contentRestriction); 1444SendValidationEvent(ResXml.Sch_NoRestOrExt, complexType); 1448SendValidationEvent(ResXml.Sch_NoRestOrExtQName, complexType.QualifiedName.Name, complexType.QualifiedName.Namespace, complexType); 1465SendValidationEvent(ResXml.Sch_MissAttribute, "base", contentExtension); 1484SendValidationEvent(ResXml.Sch_MissAttribute, "base", contentRestriction); 1523SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", group); 1527SendValidationEvent(ResXml.Sch_NoGroupParticle, group); 1532SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "minOccurs", group.Particle); 1536SendValidationEvent(ResXml.Sch_ForbiddenAttribute, "maxOccurs", group.Particle); 1553SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "name", notation); 1563SendValidationEvent(ResXml.Sch_InvalidPublicAttribute, notation.Public, notation); 1568SendValidationEvent(ResXml.Sch_MissRequiredAttribute, "public", notation); 1578SendValidationEvent(ResXml.Sch_InvalidSystemAttribute, notation.System, notation); 1594SendValidationEvent(ResXml.Sch_InvalidAllMin, particle); 1599SendValidationEvent(ResXml.Sch_InvalidAllMax, particle); 1607SendValidationEvent(ResXml.Sch_InvalidAllElementMax, element); 1618SendValidationEvent(ResXml.Sch_MinGtMax, particle); 1660SendValidationEvent(ResXml.Sch_MissAttribute, "ref", groupRef); 1675SendValidationEvent(ResXml.Sch_InvalidAny, particle); 1698SendValidationEvent(ResXml.Sch_MissAttribute, "ref", attributeGroupRef); 1718SendValidationEvent(ResXml.Sch_InvalidAnyAttribute, anyAttribute); 1733SendValidationEvent(ResXml.Sch_DupIdAttribute, xso); 1742SendValidationEvent(ResXml.Sch_InvalidIdAttribute, ex.Message, xso); 1752SendValidationEvent(ResXml.Sch_InvalidNameAttributeEx, null, ResXml.Sch_NullValue, xso); 1760string innerStr = string.Format(ResXml.Xml_BadNameCharWithPos, invCharArgs[0], invCharArgs[1], len); 1761SendValidationEvent(ResXml.Sch_InvalidNameAttributeEx, name, innerStr, xso); 1777SendValidationEvent(ResXml.Sch_UnrefNS, value.Namespace, xso, XmlSeverityType.Warning); 1782SendValidationEvent(ResXml.Sch_InvalidAttribute, attributeName, ex.Message, xso);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaElementDecl.cs (2)
243throw new XmlSchemaException(ResXml.Sch_MissRequiredAttribute, attdef.Name.ToString()); 247throw new XmlSchemaException(ResXml.Sch_StandAlone, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (5)
212throw new XmlSchemaException(ResXml.Sch_UndeclaredAttribute, qname.ToString()); 216throw new XmlSchemaException(ResXml.Sch_UndeclaredAttribute, qname.ToString()); 313throw new XmlSchemaException(ResXml.Sch_UndeclaredAttribute, qname.ToString()); 317throw new XmlSchemaException(ResXml.Sch_ProhibitedAttribute, qname.ToString()); 346eventhandler(this, new ValidationEventArgs(new XmlSchemaException(ResXml.Sch_MixSchemaTypes, string.Empty)));
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (117)
442SendValidationEvent(ResXml.Sch_NoExamplar, element); 448SendValidationEvent(ResXml.Sch_InvalidSubstitutionMember, (element.QualifiedName).ToString(), (headElement.QualifiedName).ToString(), element); 478SendValidationEvent(ResXml.Sch_SubstitutionCircularRef, (XmlSchemaElement)substitutionGroup.Members[0]); 492SendValidationEvent(ResXml.Sch_InvalidExamplar, examplar); 575SendValidationEvent(ResXml.Sch_GroupCircularRef, group); 594throw new XmlSchemaException(ResXml.Sch_TypeCircularRef, simpleType); 621SendValidationEvent(ResXml.Sch_BaseFinalList, simpleType); 628throw new XmlSchemaException(ResXml.Sch_UndeclaredSimpleType, list.ItemTypeName.ToString(), list); 657throw new XmlSchemaException(ResXml.Sch_InvalidSimpleTypeRestriction, restriction.BaseTypeName.ToString(), simpleType); 665SendValidationEvent(ResXml.Sch_BaseFinalRestriction, simpleType); 672throw new XmlSchemaException(ResXml.Sch_UndeclaredSimpleType, restriction.BaseTypeName.ToString(), restriction); 732SendValidationEvent(ResXml.Sch_BaseFinalUnion, simpleType); 737throw new XmlSchemaException(ResXml.Sch_UndeclaredSimpleType, mainMemberTypes[i].ToString(), mainUnion); 770SendValidationEvent(ResXml.Sch_UnionFromUnion, parentType); 787SendValidationEvent(ResXml.Sch_TypeCircularRef, complexType); 831SendValidationEvent(ResXml.Sch_TwoIdAttrUses, complexType); 885SendValidationEvent(ResXml.Sch_UndeclaredType, simpleExtension.BaseTypeName.ToString(), simpleExtension); 898SendValidationEvent(ResXml.Sch_BaseFinalExtension, complexType); 902SendValidationEvent(ResXml.Sch_NotSimpleContent, complexType); 924SendValidationEvent(ResXml.Sch_UndefBaseRestriction, simpleRestriction.BaseTypeName.ToString(), simpleRestriction); 940SendValidationEvent(ResXml.Sch_DerivedNotFromBase, simpleRestriction); 955SendValidationEvent(ResXml.Sch_NeedSimpleTypeChild, simpleRestriction); 960SendValidationEvent(ResXml.Sch_NotSimpleContent, complexType); 967SendValidationEvent(ResXml.Sch_BaseFinalRestriction, complexType); 1007SendValidationEvent(ResXml.Sch_UndefBaseExtension, complexExtension.BaseTypeName.ToString(), complexExtension); 1013SendValidationEvent(ResXml.Sch_BaseFinalExtension, complexType); 1053SendValidationEvent(ResXml.Sch_DifContentType, complexType); 1073SendValidationEvent(ResXml.Sch_UndefBaseRestriction, complexRestriction.BaseTypeName.ToString(), complexRestriction); 1080SendValidationEvent(ResXml.Sch_BaseFinalRestriction, complexType); 1092SendValidationEvent(ResXml.Sch_InvalidContentRestrictionDetailed, ResXml.Sch_InvalidBaseToEmpty, complexType); 1099SendValidationEvent(ResXml.Sch_InvalidContentRestrictionDetailed, ResXml.Sch_InvalidBaseToMixed, complexType); 1131SendValidationEvent(ResXml.Sch_InvalidParticleRestrictionDetailed, _restrictionErrorMsg, complexType); 1135SendValidationEvent(ResXml.Sch_InvalidParticleRestriction, complexType); 1166SendValidationEvent(ResXml.Sch_InvalidParticleRestrictionDetailed, _restrictionErrorMsg, derivedParticle); 1170SendValidationEvent(ResXml.Sch_InvalidParticleRestriction, derivedParticle); 1183SendValidationEvent(ResXml.Sch_EmptyChoice, choice, XmlSeverityType.Warning); 1264SendValidationEvent(ResXml.Sch_UndefGroupRef, groupRef.RefName.ToString(), groupRef); 1280SendValidationEvent(ResXml.Sch_AllRefNotRoot, "", groupRef); 1285SendValidationEvent(ResXml.Sch_AllRefMinMax, groupRef); 1293SendValidationEvent(ResXml.Sch_EmptyChoice, groupRef, XmlSeverityType.Warning); 1338SendValidationEvent(ResXml.Sch_NotAllAlone, all); 1381SendValidationEvent(ResXml.Sch_EmptyChoice, oldChoice, XmlSeverityType.Warning); 1529_restrictionErrorMsg = ResXml.Sch_ForbiddenDerivedParticleForElem; 1567_restrictionErrorMsg = string.Format(ResXml.Sch_SeqFromAll, derivedParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1571_restrictionErrorMsg = ResXml.Sch_ForbiddenDerivedParticleForAll; 1601_restrictionErrorMsg = string.Format(ResXml.Sch_SeqFromChoice, derivedParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1605_restrictionErrorMsg = ResXml.Sch_ForbiddenDerivedParticleForChoice; 1624_restrictionErrorMsg = ResXml.Sch_ForbiddenDerivedParticleForSeq; 1659_restrictionErrorMsg = string.Format(ResXml.Sch_ElementFromElement, derivedElement.QualifiedName, baseElement.QualifiedName); 1669_restrictionErrorMsg = string.Format(ResXml.Sch_ElementFromAnyRule1, derivedElement.QualifiedName.ToString()); 1674_restrictionErrorMsg = string.Format(ResXml.Sch_ElementFromAnyRule2, derivedElement.QualifiedName.ToString()); 1684_restrictionErrorMsg = ResXml.Sch_AnyFromAnyRule1; 1689_restrictionErrorMsg = ResXml.Sch_AnyFromAnyRule2; 1694_restrictionErrorMsg = ResXml.Sch_AnyFromAnyRule3; 1706_restrictionErrorMsg = string.Format(ResXml.Sch_GroupBaseFromAny2, derivedGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseAny.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseAny.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1716_restrictionErrorMsg = ResXml.Sch_GroupBaseFromAny1; 1781_restrictionErrorMsg = string.Format(ResXml.Sch_ElementFromGroupBase1, derivedElement.QualifiedName.ToString(), derivedElement.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedElement.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1793_restrictionErrorMsg = string.Format(ResXml.Sch_ElementFromGroupBase2, derivedElement.QualifiedName.ToString(), derivedElement.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedElement.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1805_restrictionErrorMsg = string.Format(ResXml.Sch_ElementFromGroupBase3, derivedElement.QualifiedName.ToString(), derivedElement.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedElement.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1814_restrictionErrorMsg = ResXml.Sch_GroupBaseRestRangeInvalid; 1831_restrictionErrorMsg = ResXml.Sch_GroupBaseRestRangeInvalid; 1836_restrictionErrorMsg = ResXml.Sch_GroupBaseRestNoMap; 1852_restrictionErrorMsg = ResXml.Sch_GroupBaseRestNotEmptiable; 2055SendValidationEvent(ResXml.Sch_AttributeGroupCircularRef, attributeGroup); 2083SendValidationEvent(ResXml.Sch_DupAttributeUse, attr.QualifiedName.ToString(), attr); 2109SendValidationEvent(ResXml.Sch_DupAttributeUse, attribute.QualifiedName.ToString(), attribute); 2116SendValidationEvent(ResXml.Sch_UndefAttributeGroupRef, attributeGroupRef.RefName.ToString(), attributeGroupRef); 2149SendValidationEvent(ResXml.Sch_DupAttributeUse, attr.QualifiedName.ToString(), attr); 2154SendValidationEvent(ResXml.Sch_AttributeIgnored, attr.QualifiedName.ToString(), attr, XmlSeverityType.Warning); 2175SendValidationEvent(ResXml.Sch_DupAttributeUse, attribute.QualifiedName.ToString(), attributeGroupRef); 2180SendValidationEvent(ResXml.Sch_AttributeIgnored, attribute.QualifiedName.ToString(), attribute, XmlSeverityType.Warning); 2187SendValidationEvent(ResXml.Sch_UndefAttributeGroupRef, attributeGroupRef.RefName.ToString(), attributeGroupRef); 2210SendValidationEvent(ResXml.Sch_InvalidAttributeExtension, attribute); 2220SendValidationEvent(ResXml.Sch_InvalidAnyAttributeRestriction, derivedType); 2249SendValidationEvent(ResXml.Sch_AttributeRestrictionProhibited, attribute); 2253SendValidationEvent(ResXml.Sch_AttributeUseInvalid, attribute); 2261SendValidationEvent(ResXml.Sch_AttributeRestrictionInvalid, attribute); 2265SendValidationEvent(ResXml.Sch_AttributeFixedInvalid, attribute); 2290SendValidationEvent(ResXml.Sch_AttributeRestrictionInvalidFromWildcard, attribute); 2308SendValidationEvent(ResXml.Sch_InvalidAnyAttributeRestriction, derivedAttributeGroup); 2317SendValidationEvent(ResXml.Sch_AttributeRestrictionProhibited, attribute); 2321SendValidationEvent(ResXml.Sch_AttributeUseInvalid, attribute); 2329SendValidationEvent(ResXml.Sch_AttributeRestrictionInvalid, attribute); 2333SendValidationEvent(ResXml.Sch_AttributeFixedInvalid, attribute); 2338SendValidationEvent(ResXml.Sch_NoDerivedAttribute, attributeBase.QualifiedName.ToString(), baseAttributeGroup.QualifiedName.ToString(), derivedAttributeGroup); 2351SendValidationEvent(ResXml.Sch_AttributeRestrictionInvalidFromWildcard, attribute); 2441SendValidationEvent(ResXml.Sch_UnexpressibleAnyAttribute, a); 2462SendValidationEvent(ResXml.Sch_UnexpressibleAnyAttribute, a); 2472SendValidationEvent(ResXml.Sch_AttributeCircularRef, xa); 2488throw new XmlSchemaException(ResXml.Sch_UndeclaredAttribute, xa.RefName.ToString(), xa); 2493throw new XmlSchemaException(ResXml.Sch_RefInvalidAttribute, xa.RefName.ToString(), xa); 2508throw new XmlSchemaException(ResXml.Sch_FixedDefaultInRef, xa.RefName.ToString(), xa); 2515throw new XmlSchemaException(ResXml.Sch_FixedInRef, xa.RefName.ToString(), xa); 2543throw new XmlSchemaException(ResXml.Sch_UndeclaredSimpleType, xa.SchemaTypeName.ToString(), xa); 2603SendValidationEvent(ResXml.Sch_DefaultIdValue, xa); 2633SendValidationEvent(ResXml.Sch_IdentityConstraintCircularRef, xi); 2653throw new XmlSchemaException(ResXml.Sch_UndeclaredIdentityConstraint, ((XmlSchemaKeyref)xi).Refer.ToString(), xi); 2658throw new XmlSchemaException(ResXml.Sch_RefInvalidIdentityConstraint, ((XmlSchemaKeyref)xi).Refer.ToString(), xi); 2663throw new XmlSchemaException(ResXml.Sch_RefInvalidCardin, xi.QualifiedName.ToString(), xi); 2668throw new XmlSchemaException(ResXml.Sch_ReftoKeyref, xi.QualifiedName.ToString(), xi); 2693SendValidationEvent(ResXml.Sch_ElementCircularRef, xe); 2709throw new XmlSchemaException(ResXml.Sch_UndeclaredElement, xe.RefName.ToString(), xe); 2714throw new XmlSchemaException(ResXml.Sch_RefInvalidElement, xe.RefName.ToString(), xe); 2730throw new XmlSchemaException(ResXml.Sch_UndeclaredType, xe.SchemaTypeName.ToString(), xe); 2738throw new XmlSchemaException(ResXml.Sch_UndeclaredEquivClass, xe.SubstitutionGroup.Name.ToString(), xe); 2821SendValidationEvent(ResXml.Sch_DefaultIdValue, xe); 2835throw new XmlSchemaException(ResXml.Sch_ElementCannotHaveValue, xe); 2902SendValidationEvent(ResXml.Sch_DupElement, localElement.QualifiedName.ToString(), localElement); 2926SendValidationEvent(ResXml.Sch_NonDeterministic, ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaElement)e.Particle2); 2930SendValidationEvent(ResXml.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle2).ResolvedNamespace, ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaAny)e.Particle2); 2937SendValidationEvent(ResXml.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle1).ResolvedNamespace, ((XmlSchemaElement)e.Particle2).QualifiedName.ToString(), (XmlSchemaElement)e.Particle2); 2941SendValidationEvent(ResXml.Sch_NonDeterministicAnyAny, ((XmlSchemaAny)e.Particle1).ResolvedNamespace, ((XmlSchemaAny)e.Particle2).ResolvedNamespace, (XmlSchemaAny)e.Particle2); 2948SendValidationEvent(ResXml.Sch_ComplexContentModel, complexType, XmlSeverityType.Warning); 3127SendValidationEvent(ResXml.Sch_ElementTypeCollision, particle); 3162SendValidationEvent(ResXml.Sch_TypeCircularRef, complexType);
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (52)
441SendValidationEvent(ResXml.Sch_UnsupportedElement, XmlQualifiedName.ToString(name, prefix)); 469throw new XmlException(ResXml.Xml_UnexpectedToken, "NAME"); 499SendValidationEvent(ResXml.Sch_UnsupportedAttribute, 541SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.Warning); 573throw new InvalidOperationException(ResXml.Xml_InvalidOperation); // should never be called 584SendValidationEvent(ResXml.Sch_TextNotAllowed, value); 700builder.SendValidationEvent(ResXml.Sch_UndeclaredAttribute, gname.Name); 707builder.SendValidationEvent(ResXml.Sch_UndeclaredElement, XmlQualifiedName.ToString(ed.Name.Name, ed.Prefix)); 743builder.SendValidationEvent(ResXml.Sch_DupElementDecl, XmlQualifiedName.ToString(qname.Name, prefix)); 775builder.SendValidationEvent(ResXml.Sch_MissDtvalue); 782builder.SendValidationEvent(ResXml.Sch_UnknownDtType, s); 814code = ResXml.Sch_MissAttribute; 826code = ResXml.Sch_DataTypeTextOnly; 887code = ResXml.Sch_MixedMany; 970builder.SendValidationEvent(ResXml.Sch_ElementMissing); 987builder.SendValidationEvent(ResXml.Sch_MissDtvaluesAttribute); 993builder.SendValidationEvent(ResXml.Sch_RequireEnumeration); 1052builder.SendValidationEvent(ResXml.Sch_DupAttribute, XmlQualifiedName.ToString(qname.Name, prefix)); 1066builder.SendValidationEvent(ResXml.Sch_DupAttribute, XmlQualifiedName.ToString(qname.Name, prefix)); 1108builder.SendValidationEvent(ResXml.Sch_MissAttribute); 1121code = ResXml.Sch_MissDtvaluesAttribute; 1127code = ResXml.Sch_RequireEnumeration; 1134code = ResXml.Sch_DefaultIdValue; 1179builder.SendValidationEvent(ResXml.Sch_ElementNotAllowed); 1239builder.SendValidationEvent(ResXml.Sch_MissAttribute); 1278builder.SendValidationEvent(ResXml.Sch_MissAttribute); 1308builder.SendValidationEvent(ResXml.Sch_UndeclaredAttribute, XmlQualifiedName.ToString(qname.Name, prefix)); 1351builder.SendValidationEvent(ResXml.Sch_GroupDisabled); 1375builder.SendValidationEvent(ResXml.Sch_MixedMany); 1402builder.SendValidationEvent(ResXml.Sch_ElementMissing); 1416builder.SendValidationEvent(ResXml.Sch_ManyMaxOccurs); 1435builder.SendValidationEvent(ResXml.Sch_DupDtType); 1440builder.SendValidationEvent(ResXml.Sch_DataTypeTextOnly); 1448builder.SendValidationEvent(ResXml.Sch_MissAttribute); 1460builder.SendValidationEvent(ResXml.Sch_DupDtType); 1470code = ResXml.Sch_MissAttribute; 1480code = ResXml.Sch_MissDtvaluesAttribute; 1484code = ResXml.Sch_RequireEnumeration; 1571SendValidationEvent(ResXml.Sch_UnknownOrder, qname.Name); 1591throw new XmlException(ResXml.Xml_UnexpectedToken, "NAME"); 1606builder.SendValidationEvent(ResXml.Sch_UnknownRequired); 1618builder.SendValidationEvent(ResXml.Sch_MinOccursInvalid); 1631builder.SendValidationEvent(ResXml.Sch_MaxOccursInvalid); 1658builder.SendValidationEvent(ResXml.Sch_DupDtMaxLength); 1663builder.SendValidationEvent(ResXml.Sch_DtMaxLengthInvalid, obj.ToString()); 1671builder.SendValidationEvent(ResXml.Sch_DupDtMinLength); 1676builder.SendValidationEvent(ResXml.Sch_DtMinLengthInvalid, obj.ToString()); 1684builder.SendValidationEvent(ResXml.Sch_DtMinMaxLength); 1754SendValidationEvent(ResXml.Sch_UnknownContent, qname.Name); 1767SendValidationEvent(ResXml.Sch_UnknownModel, qname.Name); 1776SendValidationEvent(ResXml.Sch_UnknownDtType, str); 1784SendValidationEvent(ResXml.Sch_IdAttrDeclared,
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (17)
230SendValidationEvent(ResXml.Sch_UndeclaredElement, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 354SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.Error); 358SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.Warning); 394throw new XmlException(ResXml.Xml_MultipleValidaitonTypes, string.Empty, this.PositionInfo.LineNumber, this.PositionInfo.LinePosition); 419SendValidationEvent(ResXml.Sch_DupId, name); 450SendValidationEvent(new XmlSchemaException(ResXml.Xml_NoValidation, string.Empty), XmlSeverityType.Warning); 506SendValidationEvent(ResXml.Sch_MaxLengthConstraintFailed, value); 513SendValidationEvent(ResXml.Sch_MinLengthConstraintFailed, value); 520SendValidationEvent(ResXml.Sch_NotationValue, typedValue.ToString()); 524SendValidationEvent(ResXml.Sch_EnumerationValue, typedValue.ToString()); 531SendValidationEvent(ResXml.Sch_FixedAttributeValue, attdef.Name.ToString()); 535SendValidationEvent(ResXml.Sch_FixedElementValue, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 543SendValidationEvent(ResXml.Sch_AttributeValueDataType, attdef.Name.ToString()); 547SendValidationEvent(ResXml.Sch_ElementValueDataType, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 604XmlSchemaException e = new XmlSchemaException(ResXml.Sch_EnumerationValue, typedValue.ToString(), baseUri, lineNo, linePos); 624XmlSchemaException e = new XmlSchemaException(ResXml.Sch_AttributeDefaultDataType, attdef.Name.ToString(), baseUri, lineNo, linePos); 685SendValidationEvent(new XmlSchemaException(ResXml.Sch_UndeclaredId, next.Id, reader.BaseURI, next.LineNo, next.LinePos));
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaException.cs (2)
52this((message == null ? ResXml.Sch_DefaultException : ResXml.Xml_UserException), new string[] { message }, innerException, null, lineNumber, linePosition, null)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (8)
317throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 321throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 376throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 380throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 392throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 396throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 408throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 412throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty));
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaParticle.cs (4)
53throw new XmlSchemaException(ResXml.Sch_MinOccursInvalidXsd, string.Empty); 89throw new XmlSchemaException(ResXml.Sch_MaxOccursInvalidXsd, string.Empty); 113throw new XmlSchemaException(ResXml.Sch_MinOccursInvalidXsd, string.Empty); 132throw new XmlSchemaException(ResXml.Sch_MaxOccursInvalidXsd, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (10)
560SendValidationEvent(new XmlSchemaException(ResXml.Sch_SchemaNotRemoved, string.Empty), XmlSeverityType.Warning); 645SendValidationEvent(new XmlSchemaException(ResXml.Sch_SchemaNotPreprocessed, string.Empty), XmlSeverityType.Error); 717throw new ArgumentException(ResXml.Sch_SchemaDoesNotExist, "schema"); 957throw new XmlSchemaException(ResXml.Sch_ComponentAlreadySeenForNS, targetNamespace); 991throw new XmlSchemaException(ResXml.Sch_ComponentAlreadySeenForNS, tns); 1424SendValidationEvent(new XmlSchemaException(ResXml.Sch_MismatchTargetNamespaceEx, new string[] { targetNamespace, schema.TargetNamespace }), XmlSeverityType.Error); 1559code = ResXml.Sch_DupComplexType; 1563code = ResXml.Sch_DupSimpleType; 1567code = ResXml.Sch_DupGlobalElement; 1585code = ResXml.Sch_DupGlobalAttribute;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (97)
348SendValidationEvent(ResXml.Sch_ComponentAlreadySeenForNS, tns, XmlSeverityType.Error); 359SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { schema.BaseUri.ToString(), e.Message }, e); 371SendValidationEvent(ResXml.Sch_ComponentAlreadySeenForNS, tns, XmlSeverityType.Error); 383throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)_currentState], s_methodNames[(int)ValidatorState.Start] })); 393throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)_currentState], s_methodNames[(int)ValidatorState.Start] })); 401throw new ArgumentException(ResXml.Sch_InvalidPartialValidationType); 557SendValidationEvent(ResXml.Sch_DuplicateAttribute, attQName.ToString()); 585SendValidationEvent(ResXml.Sch_UndeclaredAttribute, attQName.ToString()); 589SendValidationEvent(ResXml.Sch_NoAttributeSchemaFound, attQName.ToString(), XmlSeverityType.Warning); 601SendValidationEvent(ResXml.Sch_UndeclaredAttribute, attQName.ToString()); 613SendValidationEvent(ResXml.Sch_ProhibitedAttribute, attQName.ToString()); 619SendValidationEvent(ResXml.Sch_ProhibitedAttribute, attQName.ToString()); 624SendValidationEvent(ResXml.Sch_SchemaAttributeNameMismatch, new string[] { attQName.ToString(), ((XmlSchemaAttribute)pvtAttribute).QualifiedName.ToString() }); 631SendValidationEvent(ResXml.Sch_ValidateAttributeInvalidCall, string.Empty); 643SendValidationEvent(ResXml.Sch_AttrUseAndWildId, string.Empty); 652SendValidationEvent(ResXml.Sch_MoreThanOneWildId, string.Empty); 691SendValidationEvent(ResXml.Sch_NoAttributeSchemaFound, attQName.ToString(), XmlSeverityType.Warning); 711SendValidationEvent(ResXml.Sch_NotXsiAttribute, attQName.ToString()); 794SendValidationEvent(ResXml.Sch_ContentInNill, QNameString(_context.LocalName, _context.Namespace)); 801SendValidationEvent(ResXml.Sch_InvalidTextInEmpty, string.Empty); 824SendValidationEvent(ResXml.Sch_InvalidTextInElement, BuildElementName(_context.LocalName, _context.Namespace)); 829SendValidationEvent(ResXml.Sch_InvalidTextInElementExpecting, new string[] { BuildElementName(_context.LocalName, _context.Namespace), PrintExpectedElements(names, true) }); 877SendValidationEvent(ResXml.Sch_ContentInNill, QNameString(_context.LocalName, _context.Namespace)); 883SendValidationEvent(ResXml.Sch_InvalidWhitespaceInEmpty, string.Empty); 931throw new InvalidOperationException(ResXml.Sch_InvalidEndElementCall); 940throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidEndElementMultiple, s_methodNames[(int)ValidatorState.SkipToEndElement])); 972throw new InvalidOperationException(ResXml.Sch_InvalidEndValidation); 1074SendValidationEvent(ResXml.Sch_DefaultAttributeNotApplied, new string[2] { attdef.Name.ToString(), QNameString(_context.LocalName, _context.Namespace) }); 1201throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidEndElementMultiple, s_methodNames[(int)ValidatorState.EndElement])); 1251throw new InvalidOperationException(ResXml.Sch_InvalidEndElementCallTyped); 1307SendValidationEvent(ResXml.Sch_InvalidValueDetailedAttribute, new string[] { "schemaLocation", xsiSchemaLocation, s_dtStringArray.TypeCodeString, exception.Message }, exception); 1343SendValidationEvent(ResXml.Sch_ContentInNill, QNameString(_context.LocalName, _context.Namespace)); 1349SendValidationEvent(ResXml.Sch_ElementInMixedWithFixed, QNameString(_context.LocalName, _context.Namespace)); 1365SendValidationEvent(ResXml.Sch_AllElement, elementName.ToString()); 1393SendValidationEvent(ResXml.Sch_InvalidElementSubstitution, BuildElementName(elementName), BuildElementName(matchedElem.QualifiedName)); 1427SendValidationEvent(ResXml.Sch_SubstitutionNotAllowed, new string[] { member.ToString(), head.ToString() }); 1432SendValidationEvent(ResXml.Sch_SubstitutionBlocked, new string[] { member.ToString(), head.ToString() }); 1458SendValidationEvent(ResXml.Sch_InvalidElementDefaultValue, new string[] { currentElementDecl.DefaultValueRaw, QNameString(_context.LocalName, _context.Namespace) }); 1505SendValidationEvent(ResXml.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName, _context.Namespace), stringValue, GetTypeName(decl), exception.Message }, exception); 1510SendValidationEvent(ResXml.Sch_FixedElementValue, QNameString(_context.LocalName, _context.Namespace)); 1636SendValidationEvent(ResXml.Sch_SchemaElementNameMismatch, elementName.ToString(), element.QualifiedName.ToString()); 1647SendValidationEvent(ResXml.Sch_ValidateElementInvalidCall, string.Empty); 1667SendValidationEvent(ResXml.Sch_InvalidValueDetailedAttribute, new string[] { "type", xsiType, s_dtQName.TypeCodeString, exception.Message }, exception); 1684SendValidationEvent(ResXml.Sch_XsiNilAndFixed); 1690SendValidationEvent(ResXml.Sch_InvalidXsiNill); 1697SendValidationEvent(ResXml.Sch_AbstractElement, QNameString(_context.LocalName, _context.Namespace)); 1723SendValidationEvent(ResXml.Sch_XsiTypeNotFound, xsiTypeName.ToString(), severity); 1731SendValidationEvent(ResXml.Sch_XsiTypeAbstract, xsiTypeName.ToString(), severity); 1736SendValidationEvent(ResXml.Sch_XsiTypeBlockedEx, new string[] { xsiTypeName.ToString(), QNameString(_context.LocalName, _context.Namespace) }); 1768SendValidationEvent(ResXml.Sch_UndeclaredElement, QNameString(_context.LocalName, _context.Namespace)); 1772SendValidationEvent(ResXml.Sch_NoElementSchemaFound, QNameString(_context.LocalName, _context.Namespace), XmlSeverityType.Warning); 1780SendValidationEvent(ResXml.Sch_AbstractElement, QNameString(_context.LocalName, _context.Namespace)); 1853SendValidationEvent(ResXml.Sch_FixedElementValue, elementDecl.Name.ToString()); 1878SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message }, e); 1882SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message }, e, XmlSeverityType.Warning); 1923SendValidationEvent(ResXml.Sch_DupId, name); 1976SendValidationEvent(ResXml.Sch_FixedAttributeValue, attdef.Name.ToString()); 1986SendValidationEvent(ResXml.Sch_AttributeValueDataTypeDetailed, new string[] { attdef.Name.ToString(), stringValue, GetTypeName(decl), exception.Message }, exception); 2001SendValidationEvent(ResXml.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName, _context.Namespace), stringValue, GetTypeName(decl), exception.Message }, exception); 2006SendValidationEvent(ResXml.Sch_FixedElementValue, QNameString(_context.LocalName, _context.Namespace)); 2048SendValidationEvent(new XmlSchemaValidationException(ResXml.Sch_UndeclaredId, next.Id, _sourceUriString, next.LineNo, next.LinePos), XmlSeverityType.Error); 2111throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidStartTransition, new string[] { methodName, s_methodNames[(int)ValidatorState.Start] })); 2113throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)_currentState], methodName })); 2138SendValidationEvent(ResXml.Sch_MissRequiredAttribute, attdef.Name.ToString()); 2234SendValidationEvent(ResXml.Sch_RefNotInScope, QNameString(_context.LocalName, _context.Namespace)); 2289SendValidationEvent(ResXml.Sch_FieldSimpleTypeExpected, localName); 2336SendValidationEvent(ResXml.Sch_FieldSingleValueExpected, name); 2383SendValidationEvent(ResXml.Sch_FieldSingleValueExpected, localName); 2410SendValidationEvent(new XmlSchemaValidationException(ResXml.Sch_MissingKey, constraints[i].constraint.name.ToString(), _sourceUriString, ks.PosLine, ks.PosCol)); 2418SendValidationEvent(new XmlSchemaValidationException(ResXml.Sch_DuplicateKey, 2434SendValidationEvent(new XmlSchemaValidationException(ResXml.Sch_DuplicateKey, 2479SendValidationEvent(new XmlSchemaValidationException(ResXml.Sch_UnresolvedKeyref, new string[2] { ks.ToString(), vcs[i].constraint.name.ToString() }, 2549SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementContentComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), ResXml.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2553SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementContent, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2561SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementContentExpectingComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), PrintExpectedElements(names, getParticles), ResXml.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2565SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementContentExpecting, new string[] { BuildElementName(context.LocalName, context.Namespace), BuildElementName(name), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2573SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementInEmptyEx, new string[] { QNameString(context.LocalName, context.Namespace), name.ToString() }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2577SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_InvalidElementInTextOnlyEx, new string[] { QNameString(context.LocalName, context.Namespace), name.ToString() }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2602SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_IncompleteContentComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), ResXml.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2604SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_IncompleteContent, BuildElementName(context.LocalName, context.Namespace), sourceUri, lineNo, linePos), XmlSeverityType.Error); 2611SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_IncompleteContentExpectingComplex, new string[] { BuildElementName(context.LocalName, context.Namespace), PrintExpectedElements(names, getParticles), ResXml.Sch_ComplexContentModel }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2615SendValidationEvent(eventHandler, sender, new XmlSchemaValidationException(ResXml.Sch_IncompleteContentExpecting, new string[] { BuildElementName(context.LocalName, context.Namespace), PrintExpectedElements(names, getParticles) }, sourceUri, lineNo, linePos), XmlSeverityType.Error); 2624string ContinuationString = string.Format(ResXml.Sch_ContinuationString, new string[] { " " }); 2696builder.Append(string.Format(ResXml.Sch_ElementNameAndNamespace, name.Name, name.Namespace)); 2700builder.Append(string.Format(ResXml.Sch_ElementName, name.Name)); 2730subBuilder.Append(ResXml.Sch_AnyElement); 2736builder.Append(string.Format(ResXml.Sch_ElementNameAndNamespace, subBuilder.ToString(), name.Namespace)); 2740builder.Append(string.Format(ResXml.Sch_ElementName, subBuilder.ToString())); 2764builder.Append(string.Format(ResXml.Sch_AnyElementNS, subBuilder.ToString())); 2781return string.Format(ResXml.Sch_ElementNameAndNamespace, localName, ns); 2785return string.Format(ResXml.Sch_ElementName, localName); 2803SendValidationEvent(ResXml.Sch_UndeclaredEntity, name); 2808SendValidationEvent(ResXml.Sch_UnparsedEntityRef, name);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (18)
564return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeBadMapping, XmlTypeName, sourceType.Name)); 566return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeBadMapping2, XmlTypeName, sourceType.Name, destinationType.Name)); 724throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeNoNamespace, value, prefix)); 729throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeNoNamespace, value, prefix)); 855throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeNoPrefix, qname.ToString(), qname.Namespace)); 888throw new OverflowException(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int32" })); 896throw new OverflowException(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int64" })); 904throw new OverflowException(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt64" })); 912throw new OverflowException(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Byte" })); 920throw new OverflowException(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int16" })); 928throw new OverflowException(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "SByte" })); 936throw new OverflowException(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt16" })); 944throw new OverflowException(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int32" })); 952throw new OverflowException(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt32" })); 2913throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeToString, XmlTypeName, sourceType.Name)); 2916throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeFromString, XmlTypeName, destinationType.Name)); 3660return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeListBadMapping, XmlTypeName, sourceType.Name)); 3662return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeListBadMapping2, XmlTypeName, sourceType.Name, destinationType.Name));
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (56)
722SendValidationEvent(ResXml.Sch_UnsupportedElement, qname.ToString()); 746SendValidationEvent(ResXml.Sch_InvalidXsdAttributeDatatypeValue, new string[] { name, e.Message }, XmlSeverityType.Error); 773SendValidationEvent(ResXml.Sch_UnsupportedAttribute, qname.ToString()); 789SendValidationEvent(ResXml.Sch_TextNotAllowed, value); 1176builder.SendValidationEvent(ResXml.Sch_IncludeLocation, null); 1200builder.SendValidationEvent(ResXml.Sch_ImportLocation, null); 1227builder.SendValidationEvent(ResXml.Sch_RedefineLocation, null); 1433builder.SendValidationEvent(ResXml.Sch_DupXsdElement, "simpleType"); 1440builder.SendValidationEvent(ResXml.Sch_DupXsdElement, "simpleType"); 1444builder.SendValidationEvent(ResXml.Sch_TypeAfterConstraints, null); 1451builder.SendValidationEvent(ResXml.Sch_DupXsdElement, "simpleType"); 1458builder.SendValidationEvent(ResXml.Sch_DupXsdElement, "simpleType"); 1465builder.SendValidationEvent(ResXml.Sch_DupXsdElement, "simpleType"); 1473builder.SendValidationEvent(ResXml.Sch_SimpleTypeRestriction, null); 1507builder.SendValidationEvent(ResXml.Sch_DupSimpleTypeChild, null); 1540builder.SendValidationEvent(ResXml.Sch_DupSimpleTypeChild, null); 1563builder.SendValidationEvent(ResXml.Sch_DupSimpleTypeChild, null); 1601builder.SendValidationEvent(ResXml.Sch_DupElement, "complexType"); 1605builder.SendValidationEvent(ResXml.Sch_TypeAfterConstraints, null); 1651builder.SendValidationEvent(ResXml.Sch_ComplexTypeContentModel, "complexContent"); 1674builder.SendValidationEvent(ResXml.Sch_ComplexContentContentModel, "extension"); 1717builder.SendValidationEvent(ResXml.Sch_ComplexTypeContentModel, "simpleContent"); 1736builder.SendValidationEvent(ResXml.Sch_DupElement, "extension"); 1760builder.SendValidationEvent(ResXml.Sch_DupElement, "restriction"); 1836builder.SendValidationEvent(ResXml.Sch_AttributeMutuallyExclusive, "anyAttribute"); 1840builder.SendValidationEvent(ResXml.Sch_DupElement, "anyAttribute"); 1847builder.SendValidationEvent(ResXml.Sch_DupElement, "anyAttribute"); 1854builder.SendValidationEvent(ResXml.Sch_DupElement, "anyAttribute"); 1861builder.SendValidationEvent(ResXml.Sch_DupElement, "anyAttribute"); 1868builder.SendValidationEvent(ResXml.Sch_DupElement, "anyAttribute"); 1875builder.SendValidationEvent(ResXml.Sch_DupElement, "anyAttribute"); 2116builder.SendValidationEvent(ResXml.Sch_InvalidFacetPosition, null); 2159builder.SendValidationEvent(ResXml.Sch_ElementRef, null); 2190builder.SendValidationEvent(ResXml.Sch_UnsupportedAttribute, "refer"); 2211builder.SendValidationEvent(ResXml.Sch_DupSelector, builder._identityConstraint.Name); 2234builder.SendValidationEvent(ResXml.Sch_SelectorBeforeFields, builder._identityConstraint.Name); 2259builder.SendValidationEvent(ResXml.Sch_AnnotationLocation, null); 2337SendValidationEvent(ResXml.Sch_AttributeMutuallyExclusive, "attribute"); 2341SendValidationEvent(ResXml.Sch_AnyAttributeLastChild, null); 2348SendValidationEvent(ResXml.Sch_AnyAttributeLastChild, null); 2355SendValidationEvent(ResXml.Sch_AnyAttributeLastChild, null); 2362SendValidationEvent(ResXml.Sch_AnyAttributeLastChild, null); 2369SendValidationEvent(ResXml.Sch_AnyAttributeLastChild, null); 2376SendValidationEvent(ResXml.Sch_AnyAttributeLastChild, null); 2396SendValidationEvent(ResXml.Sch_ComplexTypeContentModel, "complexType"); 2405SendValidationEvent(ResXml.Sch_ComplexContentContentModel, "ComplexContentExtension"); 2414SendValidationEvent(ResXml.Sch_ComplexContentContentModel, "ComplexContentExtension"); 2421SendValidationEvent(ResXml.Sch_DupGroupParticle, "particle"); 2467SendValidationEvent(ResXml.Sch_MinOccursInvalidXsd, null); 2479SendValidationEvent(ResXml.Sch_MaxOccursInvalidXsd, null); 2491SendValidationEvent(ResXml.Sch_InvalidXsdAttributeValue, attributeName, value, null); 2504SendValidationEvent(ResXml.Sch_InvalidXsdAttributeValue, attributeName, s, null); 2518SendValidationEvent(ResXml.Sch_InvalidXsdAttributeValue, attributeName, value, null); 2537SendValidationEvent(ResXml.Sch_InvalidXsdAttributeValue, attributeName, value, null); 2547SendValidationEvent(ResXml.Sch_InvalidXsdAttributeValue, attributeName, value, null); 2552SendValidationEvent(ResXml.Sch_InvalidXsdAttributeValue, attributeName, value, null);
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDateTime.cs (2)
126throw new FormatException(string.Format(ResXml.XmlConvert_BadFormat, text, kinds)); 518throw new ArgumentException(string.Format(ResXml.Sch_XsdDateTimeCompare, left.TypeCode, right.TypeCode));
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDuration.cs (5)
288throw new OverflowException(string.Format(ResXml.XmlConvert_Overflow, ToString(), "Duration")); 386exception = new OverflowException(string.Format(ResXml.XmlConvert_Overflow, durationType, "TimeSpan")); 676return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, durationType)); 679return new OverflowException(string.Format(ResXml.XmlConvert_Overflow, s, durationType)); 704return ResXml.XmlConvert_Overflow;
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (31)
167SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { BaseUri.AbsoluteUri, e.Message }, XmlSeverityType.Error); 198SendValidationEvent(ResXml.Sch_ContentInNill, elementName.ToString()); 207SendValidationEvent(ResXml.Sch_AllElement, elementName.ToString()); 236SendValidationEvent(ResXml.Sch_UndeclaredElement, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 240SendValidationEvent(ResXml.Sch_NoElementSchemaFound, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace), XmlSeverityType.Warning); 397SendValidationEvent(ResXml.Sch_AbstractElement, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 403SendValidationEvent(ResXml.Sch_XsiNilAndType); 418SendValidationEvent(ResXml.Sch_XsiTypeNotFound, xsiType.ToString()); 423SendValidationEvent(ResXml.Sch_XsiTypeBlockedEx, new string[] { xsiType.ToString(), XmlSchemaValidator.QNameString(context.LocalName, context.Namespace) }); 438SendValidationEvent(ResXml.Sch_XsiNilAndFixed); 444SendValidationEvent(ResXml.Sch_InvalidXsiNill); 456SendValidationEvent(ResXml.Sch_AbstractElement, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 523SendValidationEvent(ResXml.Sch_UndeclaredAttribute, attQName.ToString()); 527SendValidationEvent(ResXml.Sch_NoAttributeSchemaFound, attQName.ToString(), XmlSeverityType.Warning); 615SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.Error); 620SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message }, XmlSeverityType.Warning); 651throw new XmlException(ResXml.Xml_MultipleValidaitonTypes, string.Empty, this.PositionInfo.LineNumber, this.PositionInfo.LinePosition); 680SendValidationEvent(ResXml.Sch_DupId, name); 742SendValidationEvent(ResXml.Sch_FixedAttributeValue, attdef.Name.ToString()); 746SendValidationEvent(ResXml.Sch_FixedElementValue, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 759SendValidationEvent(ResXml.Sch_AttributeValueDataType, attdef.Name.ToString()); 763SendValidationEvent(ResXml.Sch_ElementValueDataType, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 833SendValidationEvent(new XmlSchemaException(ResXml.Sch_UndeclaredId, next.Id, reader.BaseURI, next.LineNo, next.LinePos)); 914SendValidationEvent(ResXml.Sch_RefNotInScope, XmlSchemaValidator.QNameString(context.LocalName, context.Namespace)); 964SendValidationEvent(ResXml.Sch_FieldSimpleTypeExpected, reader.LocalName); 1012SendValidationEvent(ResXml.Sch_FieldSingleValueExpected, name); 1065SendValidationEvent(ResXml.Sch_FieldSingleValueExpected, reader.LocalName); 1093SendValidationEvent(new XmlSchemaException(ResXml.Sch_MissingKey, constraints[i].constraint.name.ToString(), reader.BaseURI, ks.PosLine, ks.PosCol)); 1100SendValidationEvent(new XmlSchemaException(ResXml.Sch_DuplicateKey, 1117SendValidationEvent(new XmlSchemaException(ResXml.Sch_DuplicateKey, 1160SendValidationEvent(new XmlSchemaException(ResXml.Sch_UnresolvedKeyref, new string[2] { ks.ToString(), vcs[i].constraint.name.ToString() },
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (4)
79throw new ArgumentException(string.Format(ResXml.XmlInvalidSchemaExtension, type)); 121throw new InvalidOperationException(string.Format(ResXml.XmlConfigurationDuplicateExtension, name)); 203string comment = string.Format(ResXml.XmlExtensionComment, _extension.GetType().FullName); 209throw new InvalidOperationException(string.Format(ResXml.XmlExtensionDuplicateDefinition, _extension.GetType().FullName, _clrType));
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (4)
167throw new InvalidOperationException(ResXml.XmlMappingsScopeMismatch); 177comments.Add(new CodeCommentStatement(string.Format(ResXml.XmlCodegenWarningDetails, text), false)); 243codeClass.Comments.Add(new CodeCommentStatement(ResXml.XmlRemarks, true)); 309field.Comments.Add(new CodeCommentStatement(ResXml.XmlRemarks, true));
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (3)
100if (!IsValid(c)) throw new ArgumentException(string.Format(ResXml.XmlInternalErrorDetails, "Invalid identifier character " + ((Int16)c).ToString()), "c"); 153throw new ArgumentException(string.Format(ResXml.XmlInternalErrorDetails, "Unhandled category " + uc), "c"); 164throw new ArgumentException(string.Format(ResXml.XmlInvalidIdentifier, ident), "ident");
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (8)
114throw new InvalidOperationException(string.Format(ResXml.XmlSerializerExpired, assembly.FullName, /*assembly.CodeBase*/ null), missingMethod); 123if (type == null) throw new InvalidOperationException(string.Format(ResXml.XmlMissingType, typeName, assembly.FullName)); 148throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncoding3, encodingStyle, Soap.Encoding, Soap12.Encoding)); 153throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncodingNotEncoded1, encodingStyle)); 183throw new InvalidOperationException(string.Format(ResXml.XmlNotSerializable, mapping.Accessor.Name)); 191throw new InvalidOperationException(ResXml.XmlNoPartialTrust, e); 217throw new InvalidOperationException(string.Format(ResXml.XmlNotSerializable, mapping.Accessor.Name)); 225throw new InvalidOperationException(ResXml.XmlNoPartialTrust, e);
FrameworkFork\Microsoft.Xml\Xml\Serialization\ImportContext.cs (1)
172Warnings.Add(string.Format(ResXml.XmlMismatchSchemaObjects, item.GetType().Name, qname.Name, qname.Namespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (16)
115throw new ArgumentException(string.Format(ResXml.Xml_InvalidNameChars, name), "name"); 236throw new InvalidOperationException(string.Format(ResXml.Xml_InvalidNameChars, Name)); 610throw new InvalidOperationException(string.Format(ResXml.XmlHiddenMember, parent, member.Name, member.TypeDesc.FullName, this.TypeName, _members[i].Name, _members[i].TypeDesc.FullName)); 613throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXmlOverride, parent, member.Name, this.TypeName, _members[i].Name)); 638throw new InvalidOperationException(string.Format(ResXml.XmlIllegalSimpleContentExtension, TypeDesc.FullName, BaseMapping.TypeDesc.FullName)); 651throw new InvalidOperationException(string.Format(ResXml.XmlIllegalTypedTextAttribute, TypeDesc.FullName, text.Name, text.Mapping.TypeDesc.FullName)); 1152throw new InvalidOperationException(string.Format(ResXml.XmlCircularDerivation, TypeDesc.FullName)); 1276throw new InvalidOperationException(string.Format(ResXml.XmlSerializableSchemaError, typeof(IXmlSerializable).Name, args.Message)); 1309throw new InvalidOperationException(string.Format(ResXml.XmlSerializableRootDupName, _getSchemaMethod.DeclaringType.FullName, e.Name, elementNs)); 1363throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaEmptyTypeName, _type.FullName, _getSchemaMethod.Name)); 1368throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaMethodReturnType, _type.Name, _getSchemaMethod.Name, typeof(XmlSchemaProviderAttribute).Name, typeof(XmlQualifiedName).FullName)); 1391throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, _xsiType.Namespace)); 1395throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaInclude, _xsiType.Namespace, _getSchemaMethod.DeclaringType.FullName, _getSchemaMethod.Name)); 1400throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, _xsiType.Namespace)); 1405throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaTypeMissing, _getSchemaMethod.DeclaringType.FullName, _getSchemaMethod.Name, _xsiType.Name, _xsiType.Namespace)); 1418if (_schema.Id == null || _schema.Id.Length == 0) throw new InvalidOperationException(string.Format(ResXml.XmlSerializableNameMissing1, _type.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (5)
63if (!typeDesc.IsSpecial) throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedTypeKind, type.FullName)); 193typeDesc.Exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, typeDesc.FullName)); 195throw new InvalidOperationException(string.Format(ResXml.XmlSerializerUnsupportedMember, member.DeclaringType.FullName + "." + member.Name, type.FullName), typeDesc.Exception); 290throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSpecifiedType, specifiedField.Name, specifiedField.FieldType.FullName, typeof(bool).FullName)); 307throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSpecifiedType, specifiedProperty.Name, specifiedProperty.PropertyType.FullName, typeof(bool).FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaImporter.cs (1)
168throw new InvalidOperationException(string.Format(ResXml.XmlInvalidBaseType, structMapping.TypeDesc.FullName, baseType.FullName, typeDescToChange.BaseTypeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapAttributeOverrides.cs (1)
45throw new InvalidOperationException(string.Format(ResXml.XmlMultipleAttributeOverrides, type.FullName, member));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (5)
137codeClass.Comments.Add(new CodeCommentStatement(ResXml.XmlRemarks, true)); 243field.Comments.Add(new CodeCommentStatement(ResXml.XmlRemarks, true)); 251field.Comments.Add(new CodeCommentStatement(ResXml.XmlRemarks, true)); 268prop.Comments.Add(new CodeCommentStatement(ResXml.XmlRemarks, true)); 279prop.Comments.Add(new CodeCommentStatement(ResXml.XmlRemarks, true));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (25)
174return new InvalidOperationException(string.Format(ResXml.XmlReflectionError, context), e); 202throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDataTypeUsage, dataType, "SoapElementAttribute.DataType")); 207throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXsdDataType, dataType, "SoapElementAttribute.DataType", new XmlQualifiedName(dataType, XmlSchema.Namespace).ToString())); 211throw new InvalidOperationException(string.Format(ResXml.XmlDataTypeMismatch, dataType, "SoapElementAttribute.DataType", model.TypeDesc.FullName)); 218throw new InvalidOperationException(string.Format(ResXml.XmlInvalidTypeAttributes, model.Type.FullName)); 252throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedSoapTypeKind, model.TypeDesc.FullName)); 284throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, mapping.TypeDesc.FullName, typeName, ns)); 306throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.Namespace)); 311throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.Namespace)); 369throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Count have changed")); 371throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Top have changed")); 430throw new NotSupportedException(string.Format(ResXml.XmlRpcRefsInValueType, model.TypeDesc.FullName)); 432throw new NotSupportedException(string.Format(ResXml.XmlRpcNestedValueType, member.TypeDesc.FullName)); 455throw new NotSupportedException(string.Format(ResXml.XmlRpcArrayOfValueTypes, model.TypeDesc.FullName)); 531throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSoapArray, mapping.TypeDesc.FullName)); 571throw new InvalidOperationException(string.Format(ResXml.XmlUdeclaredXsdType, dataType)); 612throw new InvalidOperationException(string.Format(ResXml.XmlNoSerializableMembers, model.TypeDesc.FullName)); 624throw new InvalidOperationException(ResXml.XmlInvalidEnumAttribute); 648if (i > 0) throw new InvalidOperationException(ResXml.XmlInvalidReturnPosition); 716throw new InvalidOperationException(ResXml.XmlInvalidVoid); 723throw new InvalidOperationException(string.Format(ResXml.XmlIllegalSoapAttribute, accessorName, accessor.TypeDesc.FullName)); 726throw new InvalidOperationException(ResXml.XmlInvalidElementAttribute); 740throw new InvalidOperationException(ResXml.XmlInvalidElementAttribute); 776throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultEnumValue, a.SoapDefaultValue.GetType().FullName, fieldTypeDesc.FullName)); 780throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, strValue, a.SoapDefaultValue.GetType().FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (6)
85throw new InvalidOperationException(ResXml.XmlMappingsScopeMismatch); 107throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateTypeName, newTypeName, newNamespace)); 138if (schema == null) throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, referencingNs)); 198throw new ArgumentException(ResXml.XmlInternalError, "mapping"); 323if (!mapping.IncludeInSchema) throw new InvalidOperationException(string.Format(ResXml.XmlSoapCannotIncludeInSchema, mapping.TypeDesc.Name)); 389throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (20)
65throw new InvalidOperationException(string.Format(ResXml.XmlPrimitiveBaseType, name.Name, name.Namespace, baseType.FullName)); 169throw new InvalidOperationException(string.Format(ResXml.RefSyntaxNotSupportedForElements0, element.RefName.Name, element.RefName.Namespace)); 175throw new InvalidOperationException(string.Format(ResXml.XmlElementHasNoName, parentType.Name, parentType.Namespace)); 202throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSchemaElementType, parentType.Name, parentType.Namespace, element.Name)); 207throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSchemaElementType, parentType.Name, parentType.Namespace, element.Name)); 213throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSubstitutionGroupUse, parentType.Name, parentType.Namespace)); 218throw new InvalidOperationException(string.Format(ResXml.XmlElementMissingType, parentType.Name, parentType.Namespace, element.Name)); 261throw new InvalidOperationException(ResXml.XmlInternalError); 273throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedRedefine, type.Name, typeNs)); 301throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSchemaElementType, parentType.Name, parentType.Namespace, element.Name)); 347throw new InvalidOperationException(string.Format(ResXml.XmlInvalidAnyAttributeUse, type.Name, type.QualifiedName.Namespace)); 356throw new InvalidOperationException(string.Format(ResXml.XmlSoapInvalidAttributeUse, type.Name, type.QualifiedName.Namespace)); 361if (attr.Use != XmlSchemaUse.Prohibited) throw new InvalidOperationException(string.Format(ResXml.XmlSoapInvalidAttributeUse, type.Name, type.QualifiedName.Namespace)); 395throw new InvalidOperationException(string.Format(ResXml.XmlSoapInvalidChoice, parentType.Name, parentType.Namespace)); 406throw new InvalidOperationException(string.Format(ResXml.XmlSoapUnsupportedGroupRef, parentType.Name, parentType.Namespace)); 412throw new InvalidOperationException(string.Format(ResXml.XmlSoapUnsupportedGroupRepeat, parentType.Name, parentType.Namespace)); 417throw new InvalidOperationException(string.Format(ResXml.XmlSoapUnsupportedGroupNested, parentType.Name, parentType.Namespace)); 421throw new InvalidOperationException(string.Format(ResXml.XmlSoapUnsupportedGroupAny, parentType.Name, parentType.Namespace)); 638throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEnumContent, dataType.Content.GetType().Name, identifier)); 721throw new InvalidOperationException(string.Format(ResXml.XmlMissingDataType, name.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (18)
388throw new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, FullName)); 402_exception = new InvalidOperationException(string.Format(ResXml.XmlConstructorInaccessible, FullName)); 729throw new InvalidOperationException(string.Format(ResXml.XmlUnsupportedOpenGenericType, type.ToString())); 797exception = new InvalidOperationException(string.Format(ResXml.XmlTypeInaccessible, type.FullName)); 802exception = new InvalidOperationException(string.Format(ResXml.XmlTypeStatic, type.FullName)); 823exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName)); 845exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedRank, type.FullName)); 867exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName)); 923exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedInterface, type.FullName)); 927exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedInterfaceDetails, memberInfo.DeclaringType.FullName + "." + memberInfo.Name, type.FullName)); 937exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName)); 1126throw new InvalidOperationException(string.Format(ResXml.XmlReadOnlyPropertyError, propertyInfo.DeclaringType, propertyInfo.Name)); 1330throw new InvalidOperationException(string.Format(ResXml.XmlNoAddMethod, type.FullName, currentType, "IEnumerable")); 1346throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedIDictionary, type.FullName)); 1350throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedIDictionaryDetails, memberInfo, type.FullName)); 1381throw new InvalidOperationException(string.Format(ResXml.XmlNoDefaultAccessors, type.FullName)); 1386throw new InvalidOperationException(string.Format(ResXml.XmlNoAddMethod, type.FullName, indexer.PropertyType, "ICollection")); 1414throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayTypeSyntax, type));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlAnyElementAttribute.cs (1)
84throw new ArgumentException(ResXml.XmlDisallowNegativeValues, "Order");
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlArrayAttribute.cs (1)
90throw new ArgumentException(ResXml.XmlDisallowNegativeValues, "Order");
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlAttributeOverrides.cs (1)
45throw new InvalidOperationException(string.Format(ResXml.XmlAttributeSetAgain, type.FullName, member));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (15)
68if (xmlTypeMapping.Accessor.Any) throw new InvalidOperationException(ResXml.XmlIllegalWildcard); 225if (value.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Invalid enumeration type " + value.GetType().Name)); 387throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, defaultValue, em.TypeDesc.FullName)); 427AddWarningComment(comments, string.Format(ResXml.XmlDropAttributeValue, attributeName, mapping.TypeName, defaultValue.ToString())); 437AddWarningComment(comments, string.Format(ResXml.XmlDropArrayAttributeValue, attributeName, defaultValue.ToString(), ((ElementAccessor)accessor).Name)); 462AddWarningComment(comments, string.Format(ResXml.XmlNotKnownDefaultValue, extension.GetType().FullName, attributeName, (string)defaultValue, mapping.TypeName, mapping.Namespace)); 478AddWarningComment(comments, string.Format(ResXml.XmlDropNonPrimitiveAttributeValue, attributeName, defaultValue.ToString())); 494AddWarningComment(comments, string.Format(ResXml.XmlDropAttributeValue, attributeName, pm.TypeName, defaultValue.ToString())); 505if (value.GetType() != typeof(object[])) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Default value for list should be object[], not " + value.GetType().Name)); 556AddWarningComment(comments, string.Format(ResXml.XmlDropDefaultAttribute, type)); 573codeClass.Comments.Add(new CodeCommentStatement(ResXml.XmlRemarks, true)); 814field.Comments.Add(new CodeCommentStatement(ResXml.XmlRemarks, true)); 822field.Comments.Add(new CodeCommentStatement(ResXml.XmlRemarks, true)); 839prop.Comments.Add(new CodeCommentStatement(ResXml.XmlRemarks, true)); 850prop.Comments.Add(new CodeCommentStatement(ResXml.XmlRemarks, true));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCustomFormatter.cs (5)
59throw new Exception(string.Format(ResXml.XmlUnsupportedDefaultType, type.FullName)); 138if (ids.Length != vals.Length) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Invalid enum")); 167throw new InvalidOperationException(string.Format(ResXml.XmlUnknownConstant, originalValue, typeName == null ? "enum" : typeName)); 206throw new Exception(string.Format(ResXml.XmlUnsupportedDefaultValue, formatter)); 397throw new InvalidOperationException(string.Format(ResXml.XmlUnknownConstant, parts[i], typeName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlElementAttribute.cs (1)
141throw new ArgumentException(ResXml.XmlDisallowNegativeValues, "Order");
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMapping.cs (1)
137throw new InvalidOperationException(ResXml.XmlMelformMapping);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (104)
130throw new InvalidOperationException(string.Format(ResXml.XmlAnonymousInclude, type.FullName)); 280throw new InvalidOperationException(string.Format(ResXml.XmlInvalidNotNullable, model.TypeDesc.BaseTypeDesc.FullName, "XmlRoot")); 297throw new ArgumentException(ResXml.XmlInternalError, "mapping"); 335throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessorDefault, accessor.Name, accessor.Namespace, value1, value2)); 340throw new InvalidOperationException(string.Format(ResXml.XmlMethodTypeNameConflict, accessor.Name, accessor.Namespace)); 346throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping))); 363throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAttributeAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping))); 365throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping))); 370return new InvalidOperationException(string.Format(ResXml.XmlReflectionError, context), e); 375return new InvalidOperationException(string.Format(ResXml.XmlTypeReflectionError, context), e); 380return new InvalidOperationException(string.Format(model.IsProperty ? ResXml.XmlPropertyReflectionError : ResXml.XmlFieldReflectionError, model.Name), e); 397throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDataTypeUsage, dataType, "XmlElementAttribute.DataType")); 402throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXsdDataType, dataType, "XmlElementAttribute.DataType", new XmlQualifiedName(dataType, XmlSchema.Namespace).ToString())); 406throw new InvalidOperationException(string.Format(ResXml.XmlDataTypeMismatch, dataType, "XmlElementAttribute.DataType", modelTypeDesc.FullName)); 414throw new InvalidOperationException(string.Format(ResXml.XmlInvalidTypeAttributes, model.Type.FullName)); 455throw new InvalidOperationException(string.Format(ResXml.XmlSerializableAttributes, model.TypeDesc.FullName, typeof(XmlSchemaProviderAttribute).Name)); 489throw new ArgumentException(string.Format(ResXml.XmlGetSchemaMethodName, provider.MethodName), "MethodName"); 493throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaMethodMissing, provider.MethodName, typeof(XmlSchemaSet).Name, type.FullName)); 496throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaMethodReturnType, type.Name, provider.MethodName, typeof(XmlSchemaProviderAttribute).Name, typeof(XmlQualifiedName).FullName, typeof(XmlSchemaType).FullName)); 582throw new InvalidOperationException(string.Format(ResXml.XmlSerializableSchemaError, typeof(IXmlSerializable).Name, args.Message)); 594throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, baseQname.Namespace)); 598throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaInclude, baseQname.Namespace, typeof(IXmlSerializable).Name, "GetSchema")); 622throw new ArgumentException(ResXml.XmlInternalError, "context"); 628return new InvalidOperationException(string.Format(ResXml.XmlInvalidAttributeUse, type.FullName)); 633return new InvalidOperationException(string.Format(ResXml.XmlIllegalTypeContext, typeDesc.FullName, GetContextName(context))); 675throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.Namespace)); 680throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.Namespace)); 722throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, mapping.TypeDesc.FullName, typeName, ns)); 778throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Count have changed")); 780throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Top have changed")); 802throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedInheritance, model.Type.GetTypeInfo().BaseType.FullName)); 871throw new InvalidOperationException(string.Format(ResXml.XmlIllegalTypedTextAttribute, typeName, member.Text.Name, member.Text.Mapping.TypeDesc.FullName)); 874throw new InvalidOperationException(string.Format(ResXml.XmlIllegalMultipleText, model.Type.FullName)); 881throw new InvalidOperationException(string.Format(ResXml.XmlMultipleXmlns, model.Type.FullName)); 912throw new InvalidOperationException(string.Format(ResXml.XmlSequenceUnique, member.SequenceId.ToString(), "Order", member.Name)); 918throw new InvalidOperationException(string.Format(ResXml.XmlSequenceInconsistent, "Order", member.Name)); 928throw new InvalidOperationException(string.Format(ResXml.XmlMultipleXmlns, model.Type.FullName)); 1152throw new ArgumentException(ResXml.XmlInternalError, "context"); 1169throw new InvalidOperationException(string.Format(ResXml.XmlUdeclaredXsdType, dataType)); 1203throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttributeFlagsArray, model.TypeDesc.FullName)); 1218throw new InvalidOperationException(string.Format(ResXml.XmlNoSerializableMembers, model.TypeDesc.FullName)); 1231throw new InvalidOperationException(ResXml.XmlInvalidConstantAttribute); 1263throw new InvalidOperationException(ResXml.XmlRpcLitAttributeAttributes); 1267throw new InvalidOperationException(string.Format(ResXml.XmlInvalidAttributeType, "XmlAttribute")); 1273if (i > 0) throw new InvalidOperationException(ResXml.XmlInvalidReturnPosition); 1289throw new InvalidOperationException(ResXml.XmlIllegalMultipleTextMembers); 1297throw new InvalidOperationException(ResXml.XmlMultipleXmlnsMembers); 1312throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMembers, "Order")); 1425throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentifierType, identifierName, memberName, type.GetElementType().FullName)); 1432throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentifierArrayType, identifierName, memberName, type.FullName)); 1438throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentifierTypeEnum, identifierName)); 1453throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMemberMissing, choice.MemberName, accessorName)); 1469throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMemberMissing, choice.MemberName, accessorName)); 1476throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferAmbiguous, choice.MemberName)); 1483throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMemberMissing, choice.MemberName, accessorName)); 1562throw new InvalidOperationException(ResXml.XmlIllegalAttributesArrayAttribute); 1568throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName, typeof(IXmlSerializable).Name)); 1572throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName)); 1610throw new InvalidOperationException(ResXml.XmlIllegalElementsArrayAttribute); 1620throw new InvalidOperationException(string.Format(ResXml.XmlIllegalArrayTextAttribute, accessorName)); 1648throw new InvalidOperationException(string.Format(ResXml.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc.FullName, "XmlElement")); 1661throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1673throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, arrayElementType.FullName)); 1684throw new InvalidOperationException(string.Format(ResXml.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace == null ? "null" : xmlAnyElement.Namespace)); 1711throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1721throw new InvalidOperationException(ResXml.XmlIllegalArrayArrayAttribute); 1756throw new InvalidOperationException(ResXml.XmlIllegalAttribute); 1760if (a.XmlAnyElements.Count > 0) throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, accessor.TypeDesc.FullName)); 1764if (a.XmlElements.Count > 0) throw new InvalidOperationException(ResXml.XmlIllegalAttribute); 1765if (a.XmlAttribute.Type != null) throw new InvalidOperationException(string.Format(ResXml.XmlIllegalType, "XmlAttribute")); 1792throw new InvalidOperationException(string.Format(ResXml.XmlIllegalType, "XmlText")); 1809throw new InvalidOperationException(string.Format(ResXml.XmlIllegalType, "XmlElement")); 1823throw new InvalidOperationException(string.Format(ResXml.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc.FullName, "XmlElement")); 1836throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1847throw new InvalidOperationException(ResXml.XmlSoleXmlnsAttribute); 1851throw new InvalidOperationException(string.Format(ResXml.XmlXmlnsInvalidType, accessorName, accessorType.FullName, typeof(XmlSerializerNamespaces).FullName)); 1862throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.FullName, typeof(IXmlSerializable).Name)); 1866throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc)); 1891throw new InvalidOperationException(string.Format(ResXml.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc.FullName, "XmlElement")); 1904throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1916throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, accessorType.FullName)); 1928throw new InvalidOperationException(string.Format(ResXml.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace == null ? "null" : xmlAnyElement.Namespace)); 1953throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1967throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitArrayElement, accessor.Elements[0].Name)); 1970throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitXmlns, accessor.Name)); 2016throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingAnyValue, accessor.ChoiceIdentifier.Mapping.TypeDesc.FullName)); 2022throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, accessor.ChoiceIdentifier.Mapping.TypeDesc.FullName, id, element.Name, element.Namespace)); 2038throw new InvalidOperationException(ResXml.XmlRpcLitAttributeAttributes); 2041throw new InvalidOperationException(ResXml.XmlRpcLitAttributes); 2047throw new InvalidOperationException(ResXml.XmlRpcLitElements); 2052throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitElementNamespace, "Namespace", xmlElement.Namespace)); 2056throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitElementNullable, "IsNullable", "true")); 2061throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitElementNamespace, "Namespace", a.XmlArray.Namespace)); 2078throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMissing, typeof(XmlChoiceIdentifierAttribute).Name, accessorName)); 2089throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMissing, typeof(XmlChoiceIdentifierAttribute).Name, accessorName)); 2104throw new InvalidOperationException(string.Format(ResXml.XmlArrayItemAmbiguousTypes, accessorName, item.ElementName, items[i].ElementName, typeof(XmlElementAttribute).Name, typeof(XmlChoiceIdentifierAttribute).Name, accessorName)); 2127throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdDuplicate, choiceMapping.TypeName, choiceId)); 2148throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, strValue, a.XmlDefaultValue.GetType().FullName)); 2181throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementName, existing.Name, existing.Namespace)); 2187throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Bad accessor type " + accessor.GetType().FullName)); 2189throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateAttributeName, existing.Name, existing.Namespace)); 2215if (isQualified && form == XmlSchemaForm.Unqualified) throw new InvalidOperationException(ResXml.XmlInvalidFormUnqualified); 2222if (isNullable && !typeDesc.IsNullable) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidIsNullable, typeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (28)
103throw new InvalidOperationException(string.Format(ResXml.XmlBareAttributeMember, member.Attribute.Name)); 105throw new InvalidOperationException(string.Format(ResXml.XmlBareTextMember, member.Text.Name)); 110throw new InvalidOperationException(string.Format(ResXml.XmlIllegalArrayElement, member.Elements[0].Name)); 252throw new InvalidOperationException(ResXml.XmlMappingsScopeMismatch); 263throw new InvalidOperationException(ResXml.XmlIllegalWildcard); 288throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateTypeName, newTypeName, newNamespace)); 319throw new InvalidOperationException(string.Format(ResXml.XmlIllegalForm, e.Name)); 326throw new InvalidOperationException(string.Format(ResXml.XmlIllegalForm, a.Name)); 402throw new ArgumentException(ResXml.XmlInternalError, "mapping"); 434throw new ArgumentException(ResXml.XmlInternalError, "mapping"); 550throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateNamespace, anyNs)); 576throw new ArgumentException(ResXml.XmlInternalError, "mapping"); 601throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Unsuported anonymous mapping type: " + mapping.ToString())); 658throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Type " + mapping.TypeName + " from namespace '" + ns + "' is an invalid array mapping")); 720throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name)); 833throw new InvalidOperationException(ResXml.XmlInternalError); 919if (value.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, string.Format(ResXml.XmlInvalidDefaultValue, value.ToString(), value.GetType().FullName))); 959throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Mapping for " + pm.TypeDesc.Name + " missing type property")); 975throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, value.ToString(), pm.TypeDesc.Name)); 978throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, value.ToString(), pm.TypeDesc.Name)); 1012throw new InvalidOperationException(string.Format(ResXml.XmlCircularReference2, mapping.TypeDesc.Name, "AnonymousType", "false")); 1018if (!mapping.IncludeInSchema) throw new InvalidOperationException(string.Format(ResXml.XmlCannotIncludeInSchema, mapping.TypeDesc.Name)); 1033throw new InvalidOperationException(string.Format(ResXml.XmlAnonymousBaseType, mapping.TypeDesc.Name, mapping.BaseMapping.TypeDesc.Name, "AnonymousType", "false")); 1094throw new InvalidOperationException(string.Format(ResXml.XmlIllegalMultipleText, name)); 1117throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name)); 1139throw new InvalidOperationException(string.Format(ResXml.XmlAnonymousBaseType, textMapping.TypeDesc.Name, pm.TypeDesc.Name, "AnonymousType", "false")); 1186if (!mapping.IncludeInSchema) throw new InvalidOperationException(string.Format(ResXml.XmlCannotIncludeInSchema, mapping.TypeDesc.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (26)
110throw new InvalidOperationException(string.Format(ResXml.XmlBadBaseElement, name.Name, name.Namespace, baseType.FullName)); 170throw new InvalidOperationException(string.Format(ResXml.XmlBadBaseType, typeName.Name, typeName.Namespace, baseType.FullName)); 332throw new InvalidOperationException(string.Format(ResXml.XmlElementHasNoName, parentType.Name, parentType.Namespace)); 410throw new InvalidOperationException(string.Format(ResXml.XmlElementImportedTwice, element.Name, ns, mapping.GetType().Name, desiredMappingType.Name)); 453throw new InvalidOperationException(string.Format(ResXml.XmlImporterExtensionBadLocalTypeName, typeOwner.GetType().FullName, typeName)); 457throw new InvalidOperationException(string.Format(ResXml.XmlImporterExtensionBadTypeName, typeOwner.GetType().FullName, qname.Name, qname.Namespace, typeName)); 537AddReference(name, TypesInUse, ResXml.XmlCircularTypeReference); 545throw new InvalidOperationException(ResXml.XmlInternalError); 558throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedRedefine, type.Name, typeNs)); 583throw new ArgumentException(ResXml.XmlInternalError, "desiredMappingType"); 588if (!type.DerivedFrom.IsEmpty) throw new InvalidOperationException(ResXml.XmlMembersDeriveError); 649throw new InvalidOperationException(string.Format(ResXml.XmlTypeUsedTwice, type.QualifiedName.Name, type.QualifiedName.Namespace)); 696throw new InvalidOperationException(string.Format(ResXml.XmlIllegalOverride, type.Name, baseMember.Name, baseMember.TypeDesc.FullName, structMapping.Members[i].TypeDesc.FullName, declaringMapping.TypeDesc.FullName)); 1023AddReference(refGroup.RefName, GroupsInUse, ResXml.XmlCircularGroupReference); 1097throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope, element.Name, element.Namespace)); 1101throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope1, element.Name, element.Namespace)); 1126AddReference(refGroup.RefName, GroupsInUse, ResXml.XmlCircularGroupReference); 1713if (attribute.Name.Length == 0) throw new InvalidOperationException(ResXml.XmlAttributeHasNoName); 1790AddReference(restriction.BaseTypeName, TypesInUse, ResXml.XmlCircularTypeReference); 1959throw new InvalidOperationException(string.Format(ResXml.XmlMissingGroup, name.Name)); 1968throw new InvalidOperationException(string.Format(ResXml.XmlMissingAttributeGroup, name.Name)); 2002AddReference(qname, TypesInUse, ResXml.XmlCircularTypeReference); 2030throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncoding, name.ToString())); 2034throw new InvalidOperationException(string.Format(ResXml.XmlMissingDataType, name.ToString())); 2057throw new InvalidOperationException(string.Format(ResXml.XmlMissingElement, name.ToString())); 2065throw new InvalidOperationException(string.Format(ResXml.XmlMissingAttribute, name.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (18)
65throw new InvalidOperationException(string.Format(ResXml.XmlSchemaDuplicateNamespace, ns)); 273if (_isCompiled) throw new InvalidOperationException(ResXml.XmlSchemaCompiled); 366throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "XmlSchemas.Find: Invalid object type " + type.FullName)); 500throw new InvalidOperationException(string.Format(ResXml.XmlSchemaIncludeLocation, this.GetType().Name, external.SchemaLocation)); 617item = string.Format(ResXml.XmlSchemaNamedItem, ns, "notation", ((XmlSchemaNotation)o).Name, details); 621item = string.Format(ResXml.XmlSchemaNamedItem, ns, "group", ((XmlSchemaGroup)o).Name, details); 630item = string.Format(ResXml.XmlSchemaElementReference, e.RefName.ToString(), parentName.Name, parentName.Namespace); 634item = string.Format(ResXml.XmlSchemaNamedItem, ns, "element", e.Name, details); 639item = string.Format(ResXml.XmlSchemaNamedItem, ns, o.GetType() == typeof(XmlSchemaSimpleType) ? "simpleType" : "complexType", ((XmlSchemaType)o).Name, null); 643item = string.Format(ResXml.XmlSchemaNamedItem, ns, "attributeGroup", ((XmlSchemaAttributeGroup)o).Name, details); 652return string.Format(ResXml.XmlSchemaAttributeReference, a.RefName.ToString(), parentName.Name, parentName.Namespace); 656item = string.Format(ResXml.XmlSchemaNamedItem, ns, "attribute", a.Name, details); 663item = string.Format(ResXml.XmlSchemaContentDef, parentName.Name, parentName.Namespace, null); 668item = string.Format(ResXml.XmlSchemaItem, ns, itemType, details); 672item = string.Format(ResXml.XmlSchema, ns, details); 676item = string.Format(ResXml.XmlSchemaNamedItem, ns, o.GetType().Name, null, details); 697string err = string.Format(ResXml.XmlSerializableMergeItem, ns, GetSchemaItem(src, ns, null)); 818throw new InvalidOperationException(string.Format(ResXml.XmlSchemaSyntaxErrorDetails, ns, message, exception.LineNumber, exception.LinePosition), exception);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (32)
988if (arrayInfo.dimensions != 1) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag())); 990if (qname.Name != name) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayTypeName, qname.Name, name, CurrentTag())); 991if (qname.Namespace != ns) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayTypeNamespace, qname.Namespace, ns, CurrentTag())); 1010throw new ArgumentNullException(string.Format(ResXml.XmlMissingArrayType, CurrentTag())); 1015throw new ArgumentException(string.Format(ResXml.XmlEmptyArrayType, CurrentTag()), "value"); 1029throw new ArgumentException(ResXml.XmlInvalidArraySyntax, "value"); 1037throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag()), "value"); 1042throw new ArgumentException(ResXml.XmlMismatchedArrayBrackets, "value"); 1059throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayLength, lengthString), "value"); 1074throw new ArgumentException(ResXml.XmlMismatchedArrayBrackets, "value"); 1076throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag()), "value"); 1078throw new ArgumentException(ResXml.XmlInvalidArraySyntax, "value"); 1128throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayLength, dimensions[i]), "value"); 1220throw new InvalidOperationException(string.Format(ResXml.XmlUndefinedAlias, prefix)); 1365return new InvalidOperationException(string.Format(ResXml.XmlUnknownType, type.Name, type.Namespace, CurrentTag())); 1371return new InvalidOperationException(string.Format(ResXml.XmlReadOnlyCollection, name)); 1377return new InvalidOperationException(string.Format(ResXml.XmlAbstractType, name, ns, CurrentTag())); 1383return new InvalidOperationException(string.Format(ResXml.XmlConstructorInaccessible, typeName)); 1389return new InvalidOperationException(string.Format(ResXml.XmlConstructorHasSecurityAttributes, typeName)); 1395return new InvalidOperationException(string.Format(ResXml.XmlUnknownNode, CurrentTag())); 1401return new InvalidOperationException(string.Format(ResXml.XmlUnknownConstant, value, enumType.Name)); 1414return new InvalidCastException(string.Format(ResXml.XmlInvalidNullCast, type.FullName)); 1416return new InvalidCastException(string.Format(ResXml.XmlInvalidCast, value.GetType().FullName, type.FullName)); 1418return new InvalidCastException(string.Format(ResXml.XmlInvalidCastWithId, value.GetType().FullName, type.FullName, id)); 1424return new InvalidOperationException(string.Format(ResXml.XmlSerializableBadDerivation, xsdDerived, nsDerived, xsdBase, nsBase, clrDerived, clrBase)); 1430return new InvalidOperationException(string.Format(ResXml.XmlSerializableMissingClrType, name, ns, typeof(XmlIncludeAttribute).Name, clrType)); 1520if (!href.StartsWith("#", StringComparison.Ordinal)) throw new InvalidOperationException(string.Format(ResXml.XmlMissingHref, href)); 1578throw new InvalidOperationException(string.Format(ResXml.XmlInvalidHref, id)); 1649throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayRef, id, o.GetType().FullName, i.ToString())); 1680if (arrayInfo.dimensions != 1) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag())); 1766throw new NotSupportedException(string.Format(ResXml.XmlRpcArrayOfValueTypes, elementType.FullName)); 2074throw new InvalidOperationException(ResXml.XmlInternalErrorReaderAdvance);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (32)
468if (_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(string.Format(ResXml.XmlCircularReference, o.GetType().FullName)); 517throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXmlns, alias)); 642if (!_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "missing stack object of type " + o.GetType().FullName)); 779throw new InvalidOperationException(ResXml.XmlNoAttributeHere); 795throw new InvalidOperationException(string.Format(ResXml.XmlElementNameMismatch, node.LocalName, node.NamespaceURI, name, ns)); 816if (typeof(IXmlSerializable).IsAssignableFrom(type)) return new InvalidOperationException(string.Format(ResXml.XmlInvalidSerializable, type.FullName)); 818if (!typeDesc.IsStructLike) return new InvalidOperationException(string.Format(ResXml.XmlInvalidUseOfType, type.FullName)); 819return new InvalidOperationException(string.Format(ResXml.XmlUnxpectedType, type.FullName)); 826return new InvalidOperationException(string.Format(ResXml.XmlChoiceMismatchChoiceException, elementName, value, enumValue)); 832return new InvalidOperationException(string.Format(ResXml.XmlUnknownAnyElement, name, ns)); 838return new InvalidOperationException(string.Format(ResXml.XmlInvalidChoiceIdentifierValue, type, identifier)); 845return new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentifierMismatch, value, identifier, name, ns)); 851return new InvalidOperationException(string.Format(ResXml.XmlUnknownConstant, value, typeName)); 863return new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, type.FullName)); 935if (attr == null) throw new InvalidOperationException(ResXml.XmlNeedAttributeHere); 1319if (!typeof(IEnumerable).IsAssignableFrom(type)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "not array like type " + type.FullName)); 1483throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateNs, prefix, ns)); 1593throw new ArgumentException(ResXml.XmlInternalError, "xmlMapping"); 1599throw new ArgumentException(ResXml.XmlInternalError, "xmlMapping"); 1680if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 1727if (defaultValue.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, name + " has invalid default type " + defaultValue.GetType().Name)); 2026if (enumSource == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping.")); 2254if (methodName == null) throw new InvalidOperationException("deriaved from " + mapping.TypeDesc.FullName + ", " + string.Format(ResXml.XmlInternalErrorMethod, derived.TypeDesc.Name) + Environment.StackTrace); 2292if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 2737throw new InvalidOperationException(ResXml.XmlInternalError); 3164throw new InvalidOperationException(ResXml.XmlInternalError); 3376if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 3441throw new InvalidOperationException(ResXml.XmlInternalError); 3590throw new InvalidOperationException(string.Format(ResXml.XmlUnsupportedDefaultType, type.FullName)); 3700throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc.FullName)); 3703throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, choiceMapping.TypeDesc.FullName, element.Namespace + ":" + element.Name, element.Name, element.Namespace)); 4018throw new InvalidOperationException(string.Format(ResXml.XmlSerializerUnsupportedType, memberInfos[0].ToString()));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (13)
75throw new ArgumentException(ResXml.XmlInternalError, "xmlMapping"); 81throw new ArgumentException(ResXml.XmlInternalError, "xmlMapping"); 132if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 204if (defaultValue.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, name + " has invalid default type " + defaultValue.GetType().Name)); 530if (enumSource == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping.")); 772if (methodName == null) throw new InvalidOperationException("deriaved from " + mapping.TypeDesc.FullName + ", " + string.Format(ResXml.XmlInternalErrorMethod, derived.TypeDesc.Name) + Environment.StackTrace); 823if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 1459throw new InvalidOperationException(ResXml.XmlInternalError); 2003throw new InvalidOperationException(ResXml.XmlInternalError); 2111if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 2184throw new InvalidOperationException(ResXml.XmlInternalError); 2412throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc.FullName)); 2415throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, choiceMapping.TypeDesc.FullName, element.Namespace + ":" + element.Name, element.Name, element.Namespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (7)
370throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncodingNotEncoded1, encodingStyle)); 398throw new InvalidOperationException(ResXml.XmlGenError, e); 460throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncodingNotEncoded1, encodingStyle)); 494throw new InvalidOperationException(string.Format(ResXml.XmlSerializeErrorDetails, lineInfo.LineNumber.ToString(), lineInfo.LinePosition.ToString()), e); 498throw new InvalidOperationException(ResXml.XmlSerializeError, e); 839throw new InvalidOperationException(string.Format(ResXml.XmlUnxpectedType, _primitiveType.FullName)); 913throw new InvalidOperationException(string.Format(ResXml.XmlUnxpectedType, _primitiveType.FullName));
FrameworkFork\Microsoft.Xml\Xml\ValidateNames.cs (18)
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()); 648throw new ArgumentException(string.Format(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')), "name");
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (50)
362throw new ArgumentNullException("name", ResXml.Xml_EmptyName); 381return new XmlException(ResXml.Xml_EmptyName, string.Empty); 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); 432throw new ArgumentNullException("name", ResXml.Xml_EmptyLocalName); 470throw new XmlException(ResXml.Sch_NotTokenString, token); 483return new XmlException(ResXml.Sch_NotTokenString, token); 506throw CreateException(ResXml.Xml_InvalidNmToken, name, exceptionType); 513throw CreateException(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos), exceptionType, 0, endPos + 1); 522return new XmlException(ResXml.Xml_EmptyName, string.Empty); 527return new XmlException(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, endPos)); 537throw new XmlSchemaException(ResXml.Sch_NotNormalizedString, str); 546return new XmlSchemaException(ResXml.Sch_NotNormalizedString, str); 595throw new XmlException(ResXml.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(content, pos), 0, pos + 1); 867throw new ArgumentException(string.Format(ResXml.Sch_InvalidDateTimeOption, dateTimeOption, "dateTimeOption")); 902throw new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Boolean")); 919return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Boolean")); 934throw new FormatException(ResXml.XmlConvert_NotOneCharString); 943return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Char")); 961return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Decimal")); 975return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Integer")); 993return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "SByte")); 1011return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Int16")); 1029return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Int32")); 1047return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Int64")); 1065return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Byte")); 1084return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "UInt16")); 1104return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "UInt32")); 1123return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "UInt64")); 1160return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Single")); 1201return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Double")); 1291throw new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "TimeSpan")); 1421throw new ArgumentException(string.Format(ResXml.Sch_InvalidDateTimeOption, dateTimeOption, "dateTimeOption")); 1476exception = new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Guid")); 1480exception = new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Guid")); 1524throw new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Uri")); 1530throw new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Uri")); 1544return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Uri")); 1549return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Uri")); 1648throw CreateException(ResXml.Xml_InvalidSurrogateMissingLowChar, invSurrogateExceptionType, 0, i + 1); 1690throw CreateException(ResXml.Xml_InvalidSurrogateMissingLowChar, exceptionType, 0, offset - i + 1); 1825return CreateException(ResXml.Xml_InvalidSurrogatePairWithArgs, args, exceptionType, lineNo, linePos); 1840return CreateException(ResXml.Xml_InvalidSurrogateHighChar, ((uint)hi).ToString("X", CultureInfo.InvariantCulture), exceptionType, lineNo, linePos); 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); 1880return (name == null) ? new ArgumentNullException(argumentName) : new ArgumentException(ResXml.Xml_EmptyName, argumentName);
FrameworkFork\Microsoft.Xml\Xml\XmlEncoding.cs (9)
35throw new ArgumentException(string.Format(ResXml.Enc_InvalidByteInEncoding, new object[1] { -1 }), (string)null); 551throw new ArgumentException(string.Format(ResXml.Enc_InvalidByteInEncoding, new object[1] { i }), (string)null); 562throw new XmlException(ResXml.Xml_InvalidCharInThisEncoding, string.Empty); 590throw new ArgumentException(string.Format(ResXml.Enc_InvalidByteInEncoding, new object[1] { i }), (string)null); 601throw new XmlException(ResXml.Xml_InvalidCharInThisEncoding, string.Empty); 630throw new ArgumentException(string.Format(ResXml.Enc_InvalidByteInEncoding, new object[1] { i }), (string)null); 641throw new XmlException(ResXml.Xml_InvalidCharInThisEncoding, string.Empty); 670throw new ArgumentException(string.Format(ResXml.Enc_InvalidByteInEncoding, new object[1] { i }), (string)null); 681throw new XmlException(ResXml.Xml_InvalidCharInThisEncoding, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\XmlException.cs (5)
60_res = (message == null ? ResXml.Xml_DefaultException : ResXml.Xml_UserException); 143return CreateMessage(ResXml.Xml_DefaultException, null, lineNumber, linePosition); 155return CreateMessage(ResXml.Xml_UserException, new string[] { message }, lineNumber, linePosition); 178message = string.Format(ResXml.Xml_MessageWithErrorPosition, new string[] { message, lineNumberStr, linePositionStr });
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (2)
144throw new ArgumentException(ResXml.Xml_XmlPrefix); 148throw new ArgumentException(ResXml.Xml_XmlnsPrefix);
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\XmlResolver.cs (1)
62throw new NotSupportedException(ResXml.Xml_RelativeUriNotSupported);
FrameworkFork\Microsoft.Xml\Xml\XmlXapResolver.cs (1)
29throw new XmlException(ResXml.Xml_XapResolverCannotOpenUri, absoluteUri.ToString(), default(Exception), null);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CompiledXpathExpr.cs (6)
34throw XPathException.Create(ResXml.Xp_NoContext); 65throw XPathException.Create(ResXml.Xp_BadQueryObject); 131throw XPathException.Create(ResXml.XmlUndefinedAlias, prefix); 138throw XPathException.Create(ResXml.Xp_UndefinedXsltContext); 142throw XPathException.Create(ResXml.Xp_UndefinedXsltContext); 222throw new InvalidOperationException(ResXml.Xml_InvalidOperation);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\DescendantBaseQuery.cs (1)
34throw XPathException.Create(ResXml.Xp_InvalidPattern);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\ExtensionQuery.cs (2)
49throw XPathException.Create(ResXml.Xp_NodeSetExpected); 63throw XPathException.Create(ResXml.Xp_NodeSetExpected);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\FunctionQuery.cs (5)
42throw XPathException.Create(ResXml.Xp_NoContext); 60throw XPathException.Create(ResXml.Xp_UndefFunc, QName); 69throw XPathException.Create(ResXml.Xp_NoContext); 88throw XPathException.Create(ResXml.Xp_FunctionFailed, QName, ex); 96throw XPathException.Create(ResXml.Xp_InvalidPattern);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Query.cs (1)
72throw XPathException.Create(ResXml.Xp_InvalidPattern);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\querybuilder.cs (6)
203throw XPathException.Create(ResXml.Xp_NotSupported, _query); 349throw XPathException.Create(ResXml.Xp_InvalidKeyPattern, _query); 428throw XPathException.Create(ResXml.Xp_CurrentNotAllowed); 432throw XPathException.Create(ResXml.Xp_InvalidKeyPattern, _query); 438throw XPathException.Create(ResXml.Xp_NotSupported, _query); 463throw XPathException.Create(ResXml.Xp_QueryTooComplex);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\SortQuery.cs (1)
47throw XPathException.Create(ResXml.Xp_NodeSetExpected);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\ValueQuery.cs (4)
21public sealed override XPathNavigator Current { get { throw XPathException.Create(ResXml.Xp_NodeSetExpected); } } 22public sealed override int CurrentPosition { get { throw XPathException.Create(ResXml.Xp_NodeSetExpected); } } 23public sealed override int Count { get { throw XPathException.Create(ResXml.Xp_NodeSetExpected); } } 24public sealed override XPathNavigator Advance() { throw XPathException.Create(ResXml.Xp_NodeSetExpected); }
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\VariableQuery.cs (3)
28throw XPathException.Create(ResXml.Xp_NoContext); 38throw XPathException.Create(ResXml.Xp_UndefVar, QName); 47throw XPathException.Create(ResXml.Xp_NoContext);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathArrayIterator.cs (1)
58throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty));
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (11)
31throw XPathException.Create(ResXml.Xp_InvalidToken, scanner.SourceText); 43throw XPathException.Create(ResXml.Xp_InvalidToken, scanner.SourceText); 61throw XPathException.Create(ResXml.Xp_QueryTooComplex); 458throw XPathException.Create(ResXml.Xp_NodeSetExpected, _scanner.SourceText); 543throw XPathException.Create(ResXml.Xp_InvalidNumArgs, name, _scanner.SourceText); 561throw XPathException.Create(ResXml.Xp_InvalidNumArgs, name, _scanner.SourceText); 580throw XPathException.Create(ResXml.Xp_InvalidArgumentType, name, _scanner.SourceText); 735throw XPathException.Create(ResXml.Xp_InvalidToken, _scanner.SourceText); 760throw XPathException.Create(ResXml.Xp_InvalidToken, _scanner.SourceText); 788throw XPathException.Create(ResXml.Xp_NodeSetExpected, _scanner.SourceText); 884throw XPathException.Create(ResXml.Xp_InvalidToken, _scanner.SourceText);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathScanner.cs (5)
32throw XPathException.Create(ResXml.Xp_ExprExpected, string.Empty); 252throw XPathException.Create(ResXml.Xp_InvalidName, SourceText); 270throw XPathException.Create(ResXml.Xp_InvalidName, SourceText); 279throw XPathException.Create(ResXml.Xp_InvalidToken, SourceText); 329throw XPathException.Create(ResXml.Xp_UnclosedString);
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathException.cs (1)
31this(ResXml.Xml_UserException, new string[] { message }, innerException)
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (19)
133throw new InvalidOperationException(ResXml.Xpn_BadPosition); 614throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1056throw new InvalidOperationException(ResXml.XPathDocument_MissingSchemas); 1063throw new InvalidOperationException(ResXml.XPathDocument_MissingSchemas); 1074throw new InvalidOperationException(string.Format(ResXml.XPathDocument_NotEnoughSchemaInfo, null)); 1080throw new InvalidOperationException(ResXml.XPathDocument_MissingSchemas); 1091throw new InvalidOperationException(string.Format(ResXml.XPathDocument_NotEnoughSchemaInfo, null)); 1095throw new InvalidOperationException(string.Format(ResXml.XPathDocument_ValidateInvalidNodeType, null)); 1220throw XPathException.Create(ResXml.Xp_NodeSetExpected); 1245throw XPathException.Create(ResXml.Xp_BadQueryObject); 1269throw XPathException.Create(ResXml.Xp_BadQueryObject); 1282throw XPathException.Create(ResXml.Xp_InvalidPattern, cexpr.Expression); 1376throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1514throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1544throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1575throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1606throw new InvalidOperationException(ResXml.Xpn_BadPosition); 1637throw new InvalidOperationException(ResXml.Xpn_BadPosition); 2130throw new ArgumentException(ResXml.Xml_InvalidOperation, "reader");
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigatorReader.cs (1)
825throw new InvalidOperationException(ResXml.Xml_InvalidOperation);
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNodeIterator.cs (2)
70throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 76throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty));