class FileValidationException extends RuntimeException (View source)

Provides an exception for upload validation errors.

Properties

protected array $errors

The validation errors.

protected string $fileName

The file name.

Methods

__construct(string $message, string $file_name, array $errors)

Constructs a new FileValidationException.

string
getFilename()

Gets the file name.

array
getErrors()

Gets the errors.

Details

__construct(string $message, string $file_name, array $errors)

Constructs a new FileValidationException.

Parameters

string $message

The message.

string $file_name

The file name.

array $errors

The validation errors.

string getFilename()

Gets the file name.

Return Value

string

The file name.

array getErrors()

Gets the errors.

Return Value

array

The errors.