.. role:: ts-api-decorator

#########################
SelectionInvalidatedError
#########################

.. container:: ts-api-section

   .. js:class:: SelectionInvalidatedError

      Error object that is thrown when an asynchronous selection error occurs.
      If this error is thrown when beginning a selection, that operation failed to start.
      If this error is thrown when advancing a selection, the handle is no longer valid.  In this case the operation has already completed.



.. container:: api-index-section

   .. rubric:: Constructors

   .. rst-class:: api-index-list-item api-kind-constructor api-parent-kind-class

   * :js:meth:`~SelectionInvalidatedError.constructor`



.. container:: api-index-section

   .. rubric:: Properties

   .. rst-class:: api-index-list-item api-kind-property api-parent-kind-class

   * :js:attr:`~SelectionInvalidatedError.message`
   * :js:attr:`~SelectionInvalidatedError.name`
   * :js:attr:`~SelectionInvalidatedError.stack`
   * :js:attr:`~SelectionInvalidatedError.prepareStackTrace`
   * :js:attr:`~SelectionInvalidatedError.stackTraceLimit`



.. container:: api-index-section

   .. rubric:: Methods

   .. rst-class:: api-index-list-item api-kind-method api-parent-kind-class

   * :js:meth:`~SelectionInvalidatedError.captureStackTrace`





------------

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

.. container:: ts-api-section

   .. js:function:: SelectionInvalidatedError.constructor()



      Creates a new SelectionInvalidatedError


      :rtype: SelectionInvalidatedError



Properties
==========

.. container:: ts-api-section

   .. js:attribute:: SelectionInvalidatedError.message

      :type: string





.. container:: ts-api-section

   .. js:attribute:: SelectionInvalidatedError.name

      :type: string





.. container:: ts-api-section

   .. js:attribute:: SelectionInvalidatedError.stack

      :type: string :ts-api-decorator:`optional`





.. container:: ts-api-section

   .. js:attribute:: SelectionInvalidatedError.prepareStackTrace

      :type: function :ts-api-decorator:`optional`

      Optional override for formatting stack traces

      :see: https://v8.dev/docs/stack-trace-api#customizing-stack-traces


      .. js:function:: prepareStackTrace( err, stackTraces)
         :noindex:

         :param err: None
         :type err: Error
         :param stackTraces: None
         :type stackTraces: [CallSite]


         :rtype: any





.. container:: ts-api-section

   .. js:attribute:: SelectionInvalidatedError.stackTraceLimit

      :type: number





Methods
=======

.. rst-class:: ts-api-section

:ts-api-decorator:`static` captureStackTrace
--------------------------------------------

.. js:method:: SelectionInvalidatedError.captureStackTrace( targetObject[, constructorOpt])

   :param targetObject: None
   :type targetObject: object
   :param constructorOpt: :ts-api-decorator:`optional` None
   :type constructorOpt: Function


   Create .stack property on a target object


   :rtype: void

