File "CouldntProcessValidationRule.php"
Full Path: /var/www/html/back/vendor/knuckleswtf/scribe/src/Exceptions/CouldntProcessValidationRule.php
File size: 493 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Knuckles\Scribe\Exceptions;
use Throwable;
class CouldntProcessValidationRule extends \RuntimeException implements ScribeException
{
public static function forParam(string $paramName, $rule, Throwable $innerException): CouldntProcessValidationRule
{
return new self(
"Couldn't process the validation rule ".var_export($rule, true)." for the param `$paramName`: {$innerException->getMessage()}",
0, $innerException
);
}
}