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, Deno, and Bun
Go to Latest
class ValueSchemaError
extends Error
Re-export
import { ValueSchemaError } from "https://deno.land/x/value_schema@v3.1.2/dist-deno/exporter.ts";

Value-Schema Error

Constructors

new
ValueSchemaError(
cause: CAUSE,
value: unknown,
keyStack: Key[],
)

constructor

Properties

readonly
cause: CAUSE
readonly
keyStack: Key[]
readonly
value: unknown

Static Methods

is(err: unknown): err is ValueSchemaError

check whether error is instance of ValueSchemaError or not

raise(
cause: CAUSE,
values: Values,
keyStack: Key[],
): never

throw an error