Skip to content

@vttforge/core / VttfError

Class: VttfError

VttfError: every error VTTForge throws extends this.

  • code is the registry key (string-narrowed).
  • name is the PascalCase name from the registry; it shows up in stack traces.
  • docsUrl points at the docs page.
  • cause uses the native ES2022 mechanism. Multiple causes => pass an AggregateError as the cause.

Extends

  • Error

Constructors

Constructor

new VttfError(code, message?, options?): VttfError

Parameters

code

`VTTF-${string}`

message?

string

options?

ErrorOptions

Returns

VttfError

Overrides

Error.constructor

Properties

cause?

optional cause?: unknown

Inherited from

Error.cause


code

readonly code: `VTTF-${string}`


docsUrl

readonly docsUrl: string


message

message: string

Inherited from

Error.message


name

name: string

Inherited from

Error.name


stack?

optional stack?: string

Inherited from

Error.stack

MIT licensed.