NotUnderstoodErrorclass
The basic command-level parsing error. This occurs when we can’t find a grammar match to the overall command phrasing.
Modified in
newbie.t[327]:
This game may be played by novice players. We’ll try to keep track of
how many not-understood commands they enter, in case it helps us decide
whether they need help. The playerHelper object will use this
information to decide whether to offer help.
class
NotUnderstoodError
:
ParseError
Superclass Tree (in declaration order)
NotUnderstoodError
ParseError
Exception
` object`
Subclass Tree
(none)
Global Objects
(none)
Summary of Properties
Inherited from ParseError
:
allowOnRespell
curable
errStage
Inherited from Exception
:
errmsg_
Summary of Methods
Inherited from ParseError
:
tryCuring
Inherited from Exception
:
construct
displayException
getExceptionMessage
showStackTrace
Properties
(none)
Methods
display ( )
OVERRIDDEN
no description available
rankCorrection (toks, idx, dict)
OVERRIDDEN
This is a general verb syntax error, so our best candidates will words that are used in verb phrases. The next best is a corrected word that’s used in any GrammarProd, since the problem might actually be in some other structural part of the command phrase above the verb phrase (a conjunction, for example).
Adv3Lite Library Reference Manual
Generated on 15/03/2023 from adv3Lite version 1.6.1