# LoadError

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.

Constructors

- `constructor()`

Properties

- `message`

- `name`

- `stack`

- `prepareStackTrace`

- `stackTraceLimit`

Methods

- `captureStackTrace()`

## Constructors

LoadError.constructor(message)
  Arguments

    - message (`string()`) – None

  Creates a new LoadError

  Return type

    LoadError

## Properties

LoadError.message
  Type

    string

LoadError.name
  Type

    string

LoadError.stack
  Type

    string optional

LoadError.prepareStackTrace
  Type

    function optional

  Optional override for formatting stack traces

  See

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

  LoadError.prepareStackTrace(err, stackTraces)
    Arguments

      - err (`Error()`) – None

      - stackTraces (`[CallSite]()`) – None

    Return type

      any

LoadError.stackTraceLimit
  Type

    number

## Methods

### static captureStackTrace

LoadError.captureStackTrace(targetObject[, constructorOpt])
  Arguments

    - targetObject (`object()`) – None

    - constructorOpt (`Function()`) – optional None

  Create .stack property on a target object

  Return type

    void