You can define custom Exceptions by implementing the failedValidation method:
Exceptions
failedValidation
protected function failedValidation(): void { throw new ValidationException($this->validator); }
Last updated 1 year ago