You are here

public function FileValidationException::__construct in Drupal 10

Constructs a new FileValidationException.

Parameters

string $message: The message.

string $file_name: The file name.

array $errors: The validation errors.

File

core/modules/file/src/Upload/FileValidationException.php, line 34

Class

FileValidationException
Provides an exception for upload validation errors.

Namespace

Drupal\file\Upload

Code

public function __construct(string $message, string $file_name, array $errors) {
  parent::__construct($message, 0, NULL);
  $this->fileName = $file_name;
  $this->errors = $errors;
}