Error thrown by the constructor when given a ref that isn't a string

Example


import Dereferencer, { NonStringRefError } from "@json-schema-tools/dereferencer";

try { const dereffer = new Dereferencer({}); }
catch(e) {
if (e instanceof NonStringRefError) { ... }
}

Implements

  • Error

Constructors

Properties

Constructors

Properties

message: string
name: string = "NonStringRefError"