bt-trader/app/Exceptions/FormValidationException.php
2026-02-24 18:58:30 +09:00

17 lines
376 B
PHP

<?php
namespace App\Exceptions;
use RuntimeException;
class FormValidationException extends RuntimeException
{
public array $errors;
public function __construct(array $errors, string $message = 'Validation failed', int $code = 0, ?\Throwable $previous = null)
{
$this->errors = $errors;
parent::__construct($message, $code, $previous);
}
}