An option of a figure (what follows the -> of the parser) is not valid, or cannot be applied to the figure. It is a ParseError: catching that one catches both, and instanceof OptionError tells them apart.
->
instanceof OptionError
Optional
Readonly
Name of the option, as written in the code (o, points...).
o
points
Static
Indicates whether the argument provided is a built-in Error instance or not.
An option of a figure (what follows the
->of the parser) is not valid, or cannot be applied to the figure. It is a ParseError: catching that one catches both, andinstanceof OptionErrortells them apart.