.. role:: ts-api-decorator

#########
LoadError
#########

.. container:: ts-api-section

   .. js:class:: LoadError

      Error object that is thrown when a model could not be loaded.
      This can be triggered when trying to load a streaming model into an SCS session or vise versa.
      This error object will also be thrown if an invalid URL is supplied when trying to load a SCS file.



.. container:: api-index-section

   .. rubric:: Constructors

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

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



.. container:: api-index-section

   .. rubric:: Properties

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

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



.. container:: api-index-section

   .. rubric:: Methods

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

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





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

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

.. container:: ts-api-section

   .. js:function:: LoadError.constructor( message)

      :param message: None
      :type message: string


      Creates a new LoadError


      :rtype: LoadError



Properties
==========

.. container:: ts-api-section

   .. js:attribute:: LoadError.message

      :type: string





.. container:: ts-api-section

   .. js:attribute:: LoadError.name

      :type: string





.. container:: ts-api-section

   .. js:attribute:: LoadError.stack

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





.. container:: ts-api-section

   .. js:attribute:: LoadError.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:: LoadError.stackTraceLimit

      :type: number





Methods
=======

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

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

.. js:method:: LoadError.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

