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()
) – NoneexpectedTreeType (
TreeNodeType()
) – NoneexpectedTreeTypes (
[TreeNodeType]()
) – None
Creates a new InvalidNodeTypeError
- Return type
InvalidNodeTypeError
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
- InvalidNodeTypeError.prepareStackTrace(err, stackTraces)
- Arguments
err (
Error()
) – NonestackTraces (
[CallSite]()
) – None
- Return type
any
- InvalidNodeTypeError.stackTraceLimit
- Type
number
Methods
static captureStackTrace
- InvalidNodeTypeError.captureStackTrace(targetObject[, constructorOpt])
- Arguments
targetObject (
object()
) – NoneconstructorOpt (
Function()
) – optional None
Create .stack property on a target object
- Return type
void