Aller au contenu principal

Error

Alias to native globalThis.Error

@example
import { Error } from '@w5s/error';

throw new Error('my message', { cause: someError });

Index

Constructors

Properties

Constructors

constructor

  • Error constructor

Properties

optionalcause

cause?: unknown

Error cause

message

message: string

Error message

name

name: Error

Error name

optionalstack

stack?: string

Error stack description (when supported)

Page Options