UNPKG

@avonjs/avonjs

Version:

A fluent Node.js API generator.

20 lines (19 loc) 558 B
import type { ValidationError } from 'joi'; import type Response from '../Http/Responses/AvonResponse'; import ResponsableException from './ResponsableException'; export default class ValidationException extends ResponsableException { protected errors: ValidationError; constructor(errors: ValidationError); /** * Get the response code */ getCode(): number; /** * Get the exception name */ getName(): string; /** * Create an HTTP response that represents the object. */ toResponse(): Response; }