Skip to content

Exceptions

tilttek/rules-lookup

Every exception of the library implements Tilttek\RulesLookup\Exception\RulesLookupException.

ExceptionRaised whenMessage, for instance
InvalidRuleA rule, an identifier, a reference, a store or a message is refused when it is made: a key, a version, a title missing, a reference to itself, two rules with one identifierThe rule "a:b" refers to itself.
InvalidQueryA query steps out of its bounds: text too long or not UTF-8, too many words, no words nor category, a locale, a filter or a page refusedA search holds at most 16 words.

The texts of a rule are Translations of tilttek/rpg-systems, which refuse a text of their own with its InvalidRecord.