Skip to main content
Module

x/domain_functions/src/errors.ts>schemaError

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
function schemaError
import { schemaError } from "https://deno.land/x/domain_functions@v2.6.0/src/errors.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