InvalidNodeTypeError
-
class
InvalidNodeTypeError
() Error object that is thrown when the user passes a node of the incorrect type to a function.
Constructors
Properties
Methods
Constructors
-
InvalidNodeTypeError.
constructor
(nodeId, expectedTreeType, expectedTreeTypes) Arguments: - nodeId (
number()
) – None - expectedTreeType (
TreeNodeType()
) – None - expectedTreeTypes (
[TreeNodeType]()
) – None
Creates a new InvalidNodeTypeError
Return type: InvalidNodeTypeError - nodeId (
Properties
-
InvalidNodeTypeError.
expectedTypes
Type: [NodeType]
-
InvalidNodeTypeError.
message
Type: string
-
InvalidNodeTypeError.
name
Type: string
-
InvalidNodeTypeError.
nodeId
Type: number
-
InvalidNodeTypeError.
stack
Type: string optional
-
InvalidNodeTypeError.
prepareStackTrace
Type: function optional Optional override for formatting stack traces
See: https://v8.dev/docs/stack-trace-api#customizing-stack-traces -
InvalidNodeTypeError.
prepareStackTrace
(err, stackTraces) Arguments: - err (
Error()
) – None - stackTraces (
[CallSite]()
) – None
Return type: any
- err (
-
-
InvalidNodeTypeError.
stackTraceLimit
Type: number