Accessors

The `Error` object accessors.

public get name(): string Error name of a string type, set to 'Error' that is being thrown.

public get [Symbol.toStringTag](): string The get accessor, with the help of toStringTag, changes the default tag to 'Error' for an instance of Error.

Last updated