AmbiguousError class | parser.t[5678]

A noun phrase is ambiguous, so we'll have to ask for clarification.

`class AmbiguousError : ResolutionError`

Superclass Tree (in declaration order)

`AmbiguousError`
`ResolutionError`
`ParseError`
`Exception`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

`allowOnRespell cmd curable nameList`

Inherited from `ResolutionError` :
`np txt`

Inherited from `ParseError` :
`errStage`

Inherited from `Exception` :
`errmsg_`

Summary of Methods

`construct display tryCuring`

Inherited from `ResolutionError` :
`rankCorrection`

``

Inherited from `Exception` :
`displayException getExceptionMessage showStackTrace`

Properties

`allowOnRespell` OVERRIDDEN | `parser.t[5700]`

Accept spelling corrections that trigger an ambiguous noun error. If we find an ambiguous noun it means that we have valid overall verb syntax *and* we have noun phrases that match in-scope objects - in fact, they match too many objects. This is pretty good evidence that the respelling is valid.

`cmd` | `parser.t[5743]`

the original Command that we were trying to resolve

`curable` OVERRIDDEN | `parser.t[5707]`

this is a curable error, since the player can fix the problem by answering the disambiguation question

`nameList` | `parser.t[5749]`

The list of object names, with distinguisher information. This is the same information returned from Distinguisher.getNames().

Methods

`construct (cmd, np, names)`OVERRIDDEN | `parser.t[5679]`

no description available

`display ( )`OVERRIDDEN | `parser.t[5686]`

no description available

`tryCuring (toks, dict)`OVERRIDDEN | `parser.t[5715]`

Try curing the error. After an ambiguous noun error, the player can type a partial noun phrase that clarifies which object was intended: a distinguishing adjective, a locational phrase, a possessive, etc.

Adv3Lite Library Reference Manual
Generated on 08/12/2025 from adv3Lite version 2.2.2