Class TooManyNodesError

An error that is thrown when an operation causes too many nodes to be created.

Many FA operation have the potential to create a huge number of nodes (thousands and millions) which may result in the JavaScript runtime running out of memory and/or crashing. This error will thrown before that happens to safely abort an otherwise resource-intensive operation.

Hierarchy

  • Error
    • TooManyNodesError

Constructors

Methods

Constructors

Methods

  • Asserts that the current number of created nodes does not exceed the limit.

    Parameters

    • current: number
    • limit: number
    • kind: string

    Returns void