Skip to main content
Module

x/value_schema/dist-deno/exporter.ts>ValueSchemaError

simple, easy-to-use, and declarative input validator; supports Node.js, TypeScript, and Deno
Go to Latest
class ValueSchemaError
extends Error
Re-export
import { ValueSchemaError } from "https://deno.land/x/value_schema@v4.0.0-rc.1/dist-deno/exporter.ts";

Value-Schema Error

Constructors

new
ValueSchemaError(
rule: RULE,
value: unknown,
keyStack: Key[],
)

constructor

Properties

readonly
keyStack: Key[]
readonly
rule: RULE

the rule that input value didn't satisfy

readonly
value: unknown

Static Methods

is(err: unknown): err is ValueSchemaError

check whether error is instance of ValueSchemaError or not

raise(
rule: RULE,
values: Values,
keyStack: Key[],
): never

throw an error