.. role:: clio-readonly
   :class: clio-flag clio-flag-readonly


####################
InvalidNodeTypeError
####################

.. js:class:: InvalidNodeTypeError

   Error object that is thrown when the user passes a node of the incorrect type to a function.
   
   
   Index
   =====
   
   .. rubric:: Constructors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~InvalidNodeTypeError.constructor`
   
   .. rubric:: Properties
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:data:`~InvalidNodeTypeError.expectedTypes`
   * :js:data:`~InvalidNodeTypeError.nodeId`
   
   




Constructors
============

.. js:method:: InvalidNodeTypeError.constructor

   .. rst-class:: sig-pretty-signature
   
      | InvalidNodeTypeError(**nodeId**\ : *number*\ , **expectedTreeType**\ : *TreeNodeType*\ , **expectedTreeTypes**\ : *TreeNodeType*\ []): :js:class:`~InvalidNodeTypeError`
   
   Creates a new InvalidNodeTypeError
   
   **Parameters**
   
      **nodeId**\ : *number*
   
      **expectedTreeType**\ : *TreeNodeType*
   
      **expectedTreeTypes**\ : *TreeNodeType*\ []
   
   
   **Returns**\ : :js:class:`~InvalidNodeTypeError`
   





Properties
==========

.. js:data:: InvalidNodeTypeError.expectedTypes

   .. rst-class:: clio-flags
   
      :clio-readonly:`readonly`
   
   .. rst-class:: sig-pretty-signature
   
      | expectedTypes: :js:data:`~NodeType`\ []
   



.. js:data:: InvalidNodeTypeError.nodeId

   .. rst-class:: clio-flags
   
      :clio-readonly:`readonly`
   
   .. rst-class:: sig-pretty-signature
   
      | nodeId: *number*
   





