Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/domain_functions/mod.ts>schemaError

Types and functions to make composition easy and safe
Latest
function schemaError
import { schemaError } from "https://deno.land/x/domain_functions@v3.0.0/mod.ts";

Creates a SchemaError (used in inputErrors and environmentErrors) from the given message and path.

Parameters

message: string

the error message

path: string

the path to the property that caused the error

Returns

the SchemaError