Skip to main content

RangeError

Alias to native globalThis.RangeError

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

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

Hierarchy

  • Error
    • RangeError

Index

Constructors

Properties

Constructors

externalconstructor

  • new RangeError(message?: string): RangeError
  • new RangeError(message?: string, options?: ErrorOptions): RangeError

Properties

name

name: RangeError
Page Options