public static function triggerOnValidation(string $name, array $record): self
    {
        $exception = new static('Record validation failed');
        $exception->name = $name;
        $exception->record = $record;

        return $exception;
    }
public static function triggerOnValidation(string $name, array $record): self
    {
        $exception = new static('Record validation failed');
        $exception->name = $name;
        $exception->record = $record;

        return $exception;
    }
public static function triggerOnValidation ( string $ name , array $ record ) : self { $ exception = new static ( 'Record validation failed' ) ; $ exception -> name = $ name ; $ exception -> record = $ record ; return $ exception ; }
Create an Exception from a Record Validation.
Create an Exception from a Record Validation .