19 references to Throw
System.Private.Xml (19)
System\Xml\Schema\DtdParser.cs (12)
1267Throw(_curPos - 5, SR.Xml_ExpectingWhiteSpace, "NDATA"); 1614Throw(_curPos, SR.Xml_ExpectingWhiteSpace, ParseUnexpectedToken(_curPos)); 2115Throw(_curPos, SR.Xml_ExpectingWhiteSpace, ParseUnexpectedToken(_curPos)); 2995Throw(_curPos, SR.Xml_UnexpectedEOF, "Name"); 3044Throw(_curPos, SR.Xml_UnexpectedEOF, "Name"); 3100Throw(_curPos, SR.Xml_UnexpectedEOF, "NmToken"); 3164Throw(_tokenStartPos, SR.Xml_ColonInLocalName, GetNameString()); 3267Throw(_curPos - entityName.Name.Length - 1, paramEntity ? SR.Xml_RecursiveParEntity : SR.Xml_RecursiveGenEntity, entityName.Name); 3374Throw(_curPos - entityName.Name.Length - 1, SR.Xml_UndeclaredEntity, entityName.Name); 3382Throw(_curPos - entityName.Name.Length - 1, SR.Xml_UnparsedEntityRef, entityName.Name); 3387Throw(_curPos - entityName.Name.Length - 1, SR.Xml_ExternalEntityInAttValue, entityName.Name); 3453Throw(curPos, res, string.Empty);
System\Xml\Schema\DtdParserAsync.cs (7)
900Throw(_curPos - 5, SR.Xml_ExpectingWhiteSpace, "NDATA"); 1241Throw(_curPos, SR.Xml_ExpectingWhiteSpace, ParseUnexpectedToken(_curPos)); 1630Throw(_curPos, SR.Xml_ExpectingWhiteSpace, ParseUnexpectedToken(_curPos)); 2409Throw(_curPos, SR.Xml_UnexpectedEOF, "Name"); 2457Throw(_curPos, SR.Xml_UnexpectedEOF, "Name"); 2513Throw(_curPos, SR.Xml_UnexpectedEOF, "NmToken"); 2597Throw(_curPos - entityName.Name.Length - 1, paramEntity ? SR.Xml_RecursiveParEntity : SR.Xml_RecursiveGenEntity, entityName.Name);