PiDraw API
    Preparing search index...

    Class OptionError

    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.

    Hierarchy (View Summary)

    Index
    cause?: unknown
    message: string
    name: string
    option: string

    Name of the option, as written in the code (o, points...).

    stack?: string
    • Indicates whether the argument provided is a built-in Error instance or not.

      Parameters

      • error: unknown

      Returns error is Error