UNPKG

@busy-hour/blaze

Version:

<h1 align='center'>🔥 Blaze</h1> <div align='center'> An event driven framework for 🔥 Hono.js </div>

20 lines (19 loc) • 364 B
// src/internal/errors/validation.ts import { BlazeError } from "./index.js"; var BlazeValidationError = class extends BlazeError { ctx; status; errors; constructor(ctx, err) { super("ValidationError"); this.ctx = ctx; this.errors = err; this.status = 400; } toJSON() { return this.errors; } }; export { BlazeValidationError };