Closed sinh117801 closed 1 month ago
In document, there's a snippet code:
import { errors } from '@vinejs/vine' export default class HttpExceptionHandler extends ExceptionHandler { async handle(error: unknown, ctx: HttpContext) { if (error instanceof errors.E_VALIDATION_EXCEPTION) { ctx.response.status(422).send(error.messages) return } return super.handle(error, ctx) } }
Actually, vine error only have E_VALIDATION_ERROR
E_VALIDATION_ERROR
Thanks!
In document, there's a snippet code:
Actually, vine error only have
E_VALIDATION_ERROR