Aller au contenu principal

URIError

Alias to native globalThis.URIError

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

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

Hierarchy

  • Error
    • URIError

Index

Constructors

Properties

Constructors

externalconstructor

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

Properties

name

name: URIError
Page Options