120 references to Throw
System.Private.Xml (120)
System\Xml\Schema\DtdParser.cs (62)
560Throw(_curPos - 3, SR.Xml_InvalidConditionalSection); // 3==strlen("<![") 576Throw(_curPos - 3, SR.Xml_UnexpectedCDataEnd); 584Throw(_curPos, SR.Xml_UnclosedConditionalSection); 607Throw(_curPos, SR.Xml_ExpectDtdMarkup); 613Throw(_curPos, SR.Xml_IncompleteDtdContent); 617Throw(_curPos, SR.Xml_UnclosedConditionalSection); 637Throw(_curPos, SR.Sch_ParEntityRefNesting); 1059Throw(_curPos, SR.Xml_InvalidContentModel); 1071Throw(_curPos, SR.Xml_InvalidContentModel); 1079Throw(_curPos, SR.Xml_InvalidContentModel); 1093Throw(_curPos, SR.Xml_InvalidContentModel); 1673Throw(_curPos, SR.Xml_IncompleteDtdContent); 1702Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1718Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1730Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1743Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1760Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1783Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1791Throw(_curPos + 2, SR.Xml_ExpectDtdMarkup); 1803Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1833Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1839Throw(_charsUsed, SR.Xml_IncompleteDtdContent); 1872Throw(_curPos, SR.Xml_ExpectExternalOrClose); 1880Throw(_curPos, SR.Xml_ExpectExternalOrClose); 1894Throw(_curPos, SR.Xml_ExpectExternalOrClose); 1912Throw(_curPos, SR.Xml_ExpectSubOrClose); 1964Throw(_curPos, SR.Xml_InvalidContentModel); 1970Throw(_curPos, SR.Xml_IncompleteDtdContent); 1983Throw(_curPos, SR.Xml_IncompleteDtdContent); 1995Throw(_curPos + 1, SR.Xml_ExpectPcData); 2042Throw(_curPos, SR.Xml_ExpectNoWhitespace); 2069Throw(_curPos, SR.Xml_ExpectOp); 2140Throw(_curPos, SR.Xml_InvalidAttributeType1); 2152Throw(_curPos, SR.Xml_InvalidAttributeType); 2159Throw(_curPos, SR.Xml_InvalidAttributeType); 2167Throw(_curPos, SR.Xml_InvalidAttributeType); 2177Throw(_curPos, SR.Xml_InvalidAttributeType); 2188Throw(_curPos, SR.Xml_InvalidAttributeType); 2213Throw(_curPos, SR.Xml_InvalidAttributeType); 2223Throw(_curPos, SR.Xml_InvalidAttributeType); 2238Throw(_curPos, SR.Xml_InvalidAttributeType); 2243Throw(_curPos, SR.Xml_InvalidAttributeType); 2250Throw(_curPos, SR.Xml_IncompleteDtdContent); 2333Throw(_curPos, SR.Xml_ExpectAttType); 2345Throw(_curPos, SR.Xml_ExpectAttType); 2354Throw(_curPos, SR.Xml_ExpectAttType); 2360Throw(_curPos, SR.Xml_ExpectAttType); 2365Throw(_curPos, SR.Xml_ExpectAttType); 2371Throw(_curPos, SR.Xml_IncompleteDtdContent); 2616Throw(_curPos, SR.Xml_UnclosedQuote); 2651Throw(_curPos, SR.Xml_ExpectExternalOrClose); 2659Throw(_curPos, SR.Xml_ExpectExternalOrClose); 2665Throw(_curPos, SR.Xml_ExpectExternalOrPublicId); 2707Throw(_curPos, SR.Xml_ExpectExternalOrClose); 2715Throw(_curPos, SR.Xml_ExpectExternalOrClose); 2727Throw(_curPos, SR.Xml_ExpectExternalIdOrEntityValue); 2788Throw(_curPos, SR.Xml_ExpectIgnoreOrInclude); 2827Throw(_curPos - 1, SR.Xml_ExpectIgnoreOrInclude); 2833Throw(_curPos, SR.Xml_IncompleteDtdContent); 2960Throw(_curPos, SR.Xml_UnclosedConditionalSection); 3257Throw(_curPos - entityName.Name.Length - 1, SR.Xml_InvalidParEntityRef); 3448Throw(_curPos, SR.Xml_InternalError);
System\Xml\Schema\DtdParserAsync.cs (58)
204Throw(_curPos - 3, SR.Xml_InvalidConditionalSection); // 3==strlen("<![") 220Throw(_curPos - 3, SR.Xml_UnexpectedCDataEnd); 228Throw(_curPos, SR.Xml_UnclosedConditionalSection); 251Throw(_curPos, SR.Xml_ExpectDtdMarkup); 257Throw(_curPos, SR.Xml_IncompleteDtdContent); 261Throw(_curPos, SR.Xml_UnclosedConditionalSection); 281Throw(_curPos, SR.Sch_ParEntityRefNesting); 690Throw(_curPos, SR.Xml_InvalidContentModel); 702Throw(_curPos, SR.Xml_InvalidContentModel); 710Throw(_curPos, SR.Xml_InvalidContentModel); 724Throw(_curPos, SR.Xml_InvalidContentModel); 1300Throw(_curPos, SR.Xml_IncompleteDtdContent); 1329Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1345Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1357Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1370Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1387Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1410Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1418Throw(_curPos + 2, SR.Xml_ExpectDtdMarkup); 1430Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1460Throw(_curPos, SR.Xml_ExpectDtdMarkup); 1466Throw(_charsUsed, SR.Xml_IncompleteDtdContent); 1499Throw(_curPos, SR.Xml_ExpectExternalOrClose); 1507Throw(_curPos, SR.Xml_ExpectExternalOrClose); 1521Throw(_curPos, SR.Xml_ExpectExternalOrClose); 1562Throw(_curPos, SR.Xml_InvalidContentModel); 1568Throw(_curPos, SR.Xml_IncompleteDtdContent); 1581Throw(_curPos, SR.Xml_IncompleteDtdContent); 1593Throw(_curPos + 1, SR.Xml_ExpectPcData); 1655Throw(_curPos, SR.Xml_InvalidAttributeType1); 1667Throw(_curPos, SR.Xml_InvalidAttributeType); 1674Throw(_curPos, SR.Xml_InvalidAttributeType); 1682Throw(_curPos, SR.Xml_InvalidAttributeType); 1692Throw(_curPos, SR.Xml_InvalidAttributeType); 1703Throw(_curPos, SR.Xml_InvalidAttributeType); 1728Throw(_curPos, SR.Xml_InvalidAttributeType); 1738Throw(_curPos, SR.Xml_InvalidAttributeType); 1753Throw(_curPos, SR.Xml_InvalidAttributeType); 1758Throw(_curPos, SR.Xml_InvalidAttributeType); 1765Throw(_curPos, SR.Xml_IncompleteDtdContent); 1794Throw(_curPos, SR.Xml_ExpectAttType); 1806Throw(_curPos, SR.Xml_ExpectAttType); 1815Throw(_curPos, SR.Xml_ExpectAttType); 1821Throw(_curPos, SR.Xml_ExpectAttType); 1826Throw(_curPos, SR.Xml_ExpectAttType); 1832Throw(_curPos, SR.Xml_IncompleteDtdContent); 2062Throw(_curPos, SR.Xml_UnclosedQuote); 2076Throw(_curPos, SR.Xml_ExpectExternalOrClose); 2084Throw(_curPos, SR.Xml_ExpectExternalOrClose); 2090Throw(_curPos, SR.Xml_ExpectExternalOrPublicId); 2132Throw(_curPos, SR.Xml_ExpectExternalOrClose); 2140Throw(_curPos, SR.Xml_ExpectExternalOrClose); 2152Throw(_curPos, SR.Xml_ExpectExternalIdOrEntityValue); 2213Throw(_curPos, SR.Xml_ExpectIgnoreOrInclude); 2252Throw(_curPos - 1, SR.Xml_ExpectIgnoreOrInclude); 2258Throw(_curPos, SR.Xml_IncompleteDtdContent); 2374Throw(_curPos, SR.Xml_UnclosedConditionalSection); 2587Throw(_curPos - entityName.Name.Length - 1, SR.Xml_InvalidParEntityRef);