import { Exception } from '@poppinss/utils'; import { HttpContext } from '@adonisjs/core/http'; /** * Validation exception raised by the error reporters. The handle method is called * automatically during an HTTP request by AdonisJS to self handle the exception */ export declare class ValidationException extends Exception { flashToSession: boolean; messages?: any; constructor(flashToSession: boolean, messages?: any); /** * Handle exception. */ handle(error: ValidationException, ctx: HttpContext & { session?: any; }): Promise; }