NotUnderstoodError class | parser.t[5095], newbie.t[327]

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

`display rankCorrection`

Inherited from `ParseError` :
`tryCuring`

Inherited from `Exception` :
`construct displayException getExceptionMessage showStackTrace`

Properties

(none)

Methods

`display ( )`OVERRIDDEN | `parser.t[5096], newbie.t[328]`

no description available

`rankCorrection (toks, idx, dict)`OVERRIDDEN | `parser.t[5113]`

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 08/12/2025 from adv3Lite version 2.2.2