<?php namespace App\Exception; use RuntimeException; class ValidationException extends RuntimeException { public function __construct($message) { parent::__construct('Validation failed' . $message, ErrorCodeEnum::UnprocessableEntity->value); } }