TypeTags .URIError

Overview

The URIError object represents an error when a global URI handling function was used in a wrong way.

️🚫

Since error objects do not have unique type tags, a URIError type tag is the same as any other Error object. If you need to check if an error is an instance of a URIError, use instanceof instead.

Usage

import { TypeTags } from 'typetags'
try {
decodeURIComponent('%')
} catch (e) {
console.log(e instanceof URIError) // true
}
TypeTags.get(new URIError())
// → [object Error]
console.log(TypeTags.URIError)
// → [object Error]

Metadata (TType)

MetadataValue
.typeURIError
.tag[object Error]
.builtin()undefined
.getTag()[object Error]
.hasSpecialArgs()false
.instance()undefined
.instanceTypeOf()object
.info()see more
.isAvailable()true
.isConstructor()true
.isFactory()true
.isFunction()true
.isGlobal()true
.isIterator()false
.isNested()false
.isObject()false
.isPrimitive()false
.isStringifiable()true
.isSyntatic()false
.isTypedArray()false
.ownKeys()[length, name, prototype]
.toString()function toString() { [native code] }
.typeOf()function

Signature

declare type ITypeTags = {
[key in Types | NestedTypes]: Tags
}
declare interface Predicate {
predicate(value: any): boolean
}

See MDN Web Docs