Aller au contenu principal

ReferenceError

Alias to native globalThis.ReferenceError

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

try {
throw new ReferenceError("Hello");
} catch (e) {
console.log(e instanceof ReferenceError); // true
console.log(e.message); // "Hello"
console.log(e.name); // "ReferenceError"
console.log(e.stack); // Stack of the error
}

Hierarchy

  • Error
    • ReferenceError

Index

Constructors

Properties

Constructors

externalconstructor

Properties

name

name: ReferenceError
Page Options