129 references to ThrowSrgsException
System.Speech (129)
Internal\SrgsCompiler\BackEnd.cs (5)
404XmlParser.ThrowSrgsException(SRID.UnsupportedFormat); 587XmlParser.ThrowSrgsException(SRID.DynamicRuleNotFound, ruleName); 600XmlParser.ThrowSrgsException(SRID.DynamicRuleNotFound, ruleName); 688XmlParser.ThrowSrgsException(SRID.RootRuleAlreadyDefined); 1001XmlParser.ThrowSrgsException(SRID.StateWithNoArcs);
Internal\SrgsCompiler\CfgArc.cs (2)
127XmlParser.ThrowSrgsException(SRID.TooManyArcs); 158XmlParser.ThrowSrgsException(SRID.TooManyArcs);
Internal\SrgsCompiler\CFGGrammar.cs (6)
83XmlParser.ThrowSrgsException(SRID.UnsupportedFormat); 90XmlParser.ThrowSrgsException(SRID.UnsupportedFormat); 103XmlParser.ThrowSrgsException(SRID.UnsupportedFormat); 403XmlParser.ThrowSrgsException(SRID.UnsupportedFormat); 465XmlParser.ThrowSrgsException(SRID.UnsupportedFormat); 494XmlParser.ThrowSrgsException(SRID.UnsupportedFormat);
Internal\SrgsCompiler\CfgRule.cs (1)
179XmlParser.ThrowSrgsException(SRID.TooManyArcs);
Internal\SrgsCompiler\CfgSemanticTag.cs (4)
97XmlParser.ThrowSrgsException(SRID.TooManyArcs); 115XmlParser.ThrowSrgsException(SRID.TooManyArcs); 136XmlParser.ThrowSrgsException(SRID.TooManyArcs); 155XmlParser.ThrowSrgsException(SRID.TooManyArcs);
Internal\SrgsCompiler\CustomGrammar.cs (3)
42XmlParser.ThrowSrgsException(SRID.IncompatibleLanguageProperties); 54XmlParser.ThrowSrgsException(SRID.IncompatibleNamespaceProperties); 91XmlParser.ThrowSrgsException(SRID.RuleDefinedMultipleTimes2, rule.Name);
Internal\SrgsCompiler\GrammarElement.cs (4)
84XmlParser.ThrowSrgsException(SRID.RootNotDefined, _sRoot); 91XmlParser.ThrowSrgsException(SRID.UndefRuleRef, rule.Name); 98XmlParser.ThrowSrgsException(SRID.InvalidSemanticProcessingType); 342XmlParser.ThrowSrgsException(SRID.RuleRedefinition, sRuleId); // "Redefinition of rule ""%s""."
Internal\SrgsCompiler\Item.cs (1)
38XmlParser.ThrowSrgsException((SRID.InvalidTagInAnEmptyItem));
Internal\SrgsCompiler\OneOf.cs (1)
49XmlParser.ThrowSrgsException(SRID.EmptyOneOf);
Internal\SrgsCompiler\Rule.cs (2)
100XmlParser.ThrowSrgsException(SRID.EmptyRule); 112XmlParser.ThrowSrgsException((SRID.MaxTransitionsCount));
Internal\SrgsCompiler\SRGSCompiler.cs (1)
153XmlParser.ThrowSrgsException(SRID.NoScriptsForRules);
Internal\SrgsCompiler\State.cs (2)
194XmlParser.ThrowSrgsException(SRID.MaxTransitionsCount); 245XmlParser.ThrowSrgsException(SRID.CircularRuleRef, _rule != null ? _rule._rule.Name : string.Empty);
Internal\SrgsParser\SrgsDocumentParser.cs (4)
342XmlParser.ThrowSrgsException(SRID.InvalidElement); 351XmlParser.ThrowSrgsException(SRID.InvalidElement); 363XmlParser.ThrowSrgsException(SRID.InvalidElement); 380XmlParser.ThrowSrgsException(SRID.InvalidElement);
Internal\SrgsParser\XmlParser.cs (80)
74ThrowSrgsException(SRID.InvalidSrgsNamespace); 79ThrowSrgsException(SRID.GrammarDefTwice); 91ThrowSrgsException(SRID.InvalidSrgs); 151XmlParser.ThrowSrgsException(SRID.InvalidQuotedString); 158XmlParser.ThrowSrgsException(SRID.InvalidQuotedString); 175XmlParser.ThrowSrgsException(SRID.InvalidTokenString); 291ThrowSrgsException(SRID.RootRuleAlreadyDefined); 299ThrowSrgsException(SRID.InvalidVersion); 326ThrowSrgsException(SRID.InvalidTagFormat); 343ThrowSrgsException(SRID.InvalidGrammarMode); 408ThrowSrgsException(SRID.UnsupportedPhoneticAlphabet, reader.Value); 421ThrowSrgsException(SRID.UnsupportedLanguage, reader.Value); 429ThrowSrgsException(SRID.NoName1, "namespace"); 437ThrowSrgsException(SRID.NoName1, "codebehind"); 457ThrowSrgsException(SRID.InvalidGrammarAttribute, reader.Name); 464ThrowSrgsException(SRID.MissingRequiredAttribute, "version", "grammar"); 472ThrowSrgsException(SRID.MissingRequiredAttribute, "xml:lang", "grammar"); 537ThrowSrgsException(SRID.InvalidRuleScope); 564ThrowSrgsException(SRID.InvalidDynamicSetting); 573ThrowSrgsException(SRID.NoName1, "baseclass"); 603ThrowSrgsException(SRID.InvalidRuleAttribute, reader.Name); 609ThrowSrgsException(SRID.NoRuleId); 614XmlParser.ThrowSrgsException(SRID.OnInitOnPublicRule, "OnInit", id); 619XmlParser.ThrowSrgsException(SRID.OnInitOnPublicRule, "OnRecognition", id); 654ThrowSrgsException(SRID.InvalidEmptyRule, "rule", id); 688ThrowSrgsException(SRID.InvalidAttributeDefinedTwice, reader.Value, "special"); 705ThrowSrgsException(SRID.InvalidSpecialRuleRef); 743ThrowSrgsException(SRID.InvalidRulerefAttribute, reader.Name); 755ThrowSrgsException(SRID.InvalidRuleRef, "uri"); 764ThrowSrgsException(SRID.NoUriForSpecialRuleRef); 768ThrowSrgsException(SRID.NoAliasForSpecialRuleRef); 794ThrowSrgsException(SRID.InvalidOneOfAttribute, reader.Name); 845ThrowSrgsException(SRID.InvalidItemAttribute, reader.Name); 906ThrowSrgsException(SRID.InvalidSubsetAttribute, reader.Name); 914ThrowSrgsException(SRID.InvalidEmptyElement, "subset"); 951XmlParser.ThrowSrgsException(SRID.EmptyPronunciationString); 956XmlParser.ThrowSrgsException(SRID.MuliplePronunciationString); 970XmlParser.ThrowSrgsException(SRID.EmptyDisplayString); 975XmlParser.ThrowSrgsException(SRID.MultipleDisplayString); 995ThrowSrgsException(SRID.InvalidReqConfAttribute, reader.Name); 1008ThrowSrgsException(SRID.InvalidTokenAttribute, reader.Name); 1017ThrowSrgsException(SRID.InvalidEmptyElement, "token"); 1022ThrowSrgsException(SRID.InvalidTokenString); 1075ThrowSrgsException(SRID.MissingTagFormat); 1091ThrowSrgsException(SRID.InvalidTagAttribute, reader.Name); 1128ThrowSrgsException(SRID.InvalidLexiconAttribute, reader.Name); 1134ThrowSrgsException(SRID.MissingRequiredAttribute, "uri", "lexicon"); 1159ThrowSrgsException(SRID.MetaNameHTTPEquiv); 1176ThrowSrgsException(SRID.InvalidMetaAttribute, reader.Name); 1182ThrowSrgsException(SRID.MissingRequiredAttribute, "content", "meta"); 1186ThrowSrgsException(SRID.MissingRequiredAttribute, "name or http-equiv", "meta"); 1200ThrowSrgsException(SRID.InvalidScriptAttribute); 1213ThrowSrgsException(SRID.RuleAttributeDefinedMultipleTimes); 1218ThrowSrgsException(SRID.InvalidScriptAttribute); 1244ThrowSrgsException(SRID.InvalidScriptAttribute); 1255ThrowSrgsException(SRID.InvalidAssemblyReferenceAttribute); 1270ThrowSrgsException(SRID.InvalidScriptAttribute); 1281ThrowSrgsException(SRID.InvalidImportNamespaceAttribute); 1309ThrowSrgsException(SRID.InvalidNotEmptyElement, parentName); 1322ThrowSrgsException(SRID.InvalidExampleOrdering); 1397ThrowSrgsException(SRID.InvalidNotEmptyElement, parentName); 1410ThrowSrgsException(SRID.InvalidElement, reader.Name); 1533ThrowSrgsException(SRID.InvalidGrammarOrdering); 1541ThrowSrgsException(SRID.InvalidGrammarOrdering); 1549ThrowSrgsException(SRID.InvalidGrammarOrdering); 1563ThrowSrgsException(SRID.InvalidGrammarOrdering); 1607ThrowSrgsException(SRID.InvalidElement, "text"); 1615ThrowSrgsException(SRID.InvalidElement, reader.Name); 1659ThrowSrgsException(SRID.InvalidElement, reader.Name); 1706XmlParser.ThrowSrgsException(SRID.IncorrectAttributeValue, name, sTag.Substring(iEqual)); 1746XmlParser.ThrowSrgsException(SRID.InvalidNameValueProperty, name, sValue); 1774XmlParser.ThrowSrgsException(SRID.MinMaxOutOfRange, minmax, minmax); 1792XmlParser.ThrowSrgsException(SRID.MinMaxOutOfRange, minRepeat, maxRepeat); 1803ThrowSrgsException(SRID.InvalidItemRepeatAttribute, repeat); 1808ThrowSrgsException(SRID.InvalidItemAttribute2); 1822XmlParser.ThrowSrgsException(SRID.InvalidAttributeDefinedTwice, reader.Value, attribute); 1834XmlParser.ThrowSrgsException(SRID.InvalidRuleId, id); 1847ThrowSrgsException(SRID.InvalidRuleRefSelf); 1859ThrowSrgsException(SRID.InvalidScriptDefinition, script._name); 1869XmlParser.ThrowSrgsException(SRID.RuleAttributeDefinedMultipleTimes, rule);
Recognition\SrgsGrammar\SrgsGrammar.cs (4)
169XmlParser.ThrowSrgsException(SRID.RootNotDefined, _root.Id); 189XmlParser.ThrowSrgsException(SRID.InvalidSemanticProcessingType); 223XmlParser.ThrowSrgsException(SRID.RootNotDefined, _sRoot); 237XmlParser.ThrowSrgsException(SRID.InvalidScriptDefinition);
Recognition\SrgsGrammar\SrgsNameValueTag.cs (1)
122XmlParser.ThrowSrgsException(SRID.SapiPropertiesAndSemantics);
Recognition\SrgsGrammar\SrgsRule.cs (5)
200XmlParser.ThrowSrgsException(SRID.InvalidEmptyRule, "rule", _id); 298XmlParser.ThrowSrgsException(SRID.OnInitOnPublicRule, "OnInit", Id); 303XmlParser.ThrowSrgsException(SRID.OnInitOnPublicRule, "OnRecognition", Id); 385XmlParser.ThrowSrgsException(SRID.ConstructorNotAllowed, _id); 390XmlParser.ThrowSrgsException(SRID.InvalidMethodName);
Recognition\SrgsGrammar\SrgsRuleRef.cs (2)
153XmlParser.ThrowSrgsException(SRID.InvalidSpecialRuleRef); 210XmlParser.ThrowSrgsException(SRID.UndefRuleRef, sUri);
Recognition\SrgsGrammar\SrgsSemanticInterpretationTag.cs (1)
61XmlParser.ThrowSrgsException(SRID.SapiPropertiesAndSemantics);