# InvalidNodeTypeError

class `InvalidNodeTypeError`()

  Error object that is thrown when the user passes a node of the incorrect type to a function.

  ## Index

  Constructors

  - `constructor`

  Properties

  - `expectedTypes`
  - `nodeId`

## Constructors

`InvalidNodeTypeError.``constructor`()
  InvalidNodeTypeError(nodeId: number, expectedTreeType: TreeNodeType, expectedTreeTypes: TreeNodeType[]): `InvalidNodeTypeError`

  Creates a new InvalidNodeTypeError

  Parameters

  > nodeId: number

  > expectedTreeType: TreeNodeType

  > expectedTreeTypes: TreeNodeType[]

  Returns: `InvalidNodeTypeError`

## Properties

`InvalidNodeTypeError.``expectedTypes`

  readonly

  expectedTypes: `NodeType`[]

`InvalidNodeTypeError.``nodeId`

  readonly

  nodeId: number

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize Web or choose a sample question below to start a conversation:

What is HOOPS Visualize Web?
What are the latest release notes for HOOPS Visualize Web?
How do I start evaluating HOOPS Visualize Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...