<?php

namespace Velis\Filesystem\Av\Exception;

use RuntimeException;
use Velis\Lang;

/**
 * @author Szymon Janaczek <szymon.janaczek@velistech.com>
 */
final class OneOrMoreFilesInfectedException extends RuntimeException
{
    public function __construct(
        ?string $message = null,
    ) {
        $message ??= Lang::get('FILE_ONE_OR_MORE_INFECTED');

        parent::__construct($message, 400);
    }
}
