Skip to main content

Class: VindralError

Represents a vindral error - all errors emitted from the Vindral instance inherit from this class.

Hierarchy

  • Error

    VindralError

Properties

prepareStackTrace

Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Type declaration

▸ (err, stackTraces): any

Optional override for formatting stack traces

Parameters
NameType
errError
stackTracesCallSite[]
Returns

any

See

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

Inherited from

Error.prepareStackTrace

Methods

code

code(): string

The error code is a stable string that represents the error type - this should be treated as an opaque string that can be used as a key for looking up localized strings for displaying error messages.

Returns

string

the error code


isFatal

isFatal(): boolean

Indicates whether the error is fatal - if it is that means the Vindral instance will be unloaded because of this error.

Returns

boolean


source

source(): undefined | Error | MediaError

The underlying error that caused the Vindral error

Returns

undefined | Error | MediaError

the underlying error


toStringifiable

toStringifiable(): Record<string, unknown>

Returns

Record<string, unknown>

a stringifiable represenation of the error


captureStackTrace

captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

Error.captureStackTrace