UNPKG

@sentzunhat/zacatl

Version:

A modular, high-performance TypeScript microservice framework for Node.js, featuring layered architecture, dependency injection, and robust validation for building scalable APIs and distributed systems.

16 lines (13 loc) 352 B
import { CustomError, CustomErrorsArgs } from "./custom"; export interface ValidationErrorArgs extends CustomErrorsArgs {} export class ValidationError extends CustomError { constructor({ message, reason, metadata, error }: ValidationErrorArgs) { super({ message, code: 422, reason, metadata, error, }); } }