Skip to main content
Module

x/enzastdlib/errors/validationerror.ts>ValidationError

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
class ValidationError
extends Error
import { ValidationError } from "https://deno.land/x/enzastdlib@v0.0.4/errors/validationerror.ts";

Represents an exception regarding user-facing validation of data or input.

Examples

Example 1

import { ValidationError } from 'https://deno.land/x/enzastdlib/errors/mod.ts';

throw new ValidationError(
    'property \'MyInterface.myProperty\' was a \'string\', expected \'number\'',
);

Properties

readonly
name