2020-07-25 23:44:44 +02:00
|
|
|
<?PHP
|
|
|
|
/**
|
|
|
|
* This file contains an exception class for wrongly used files.
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
*
|
|
|
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
|
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom exception class for wrongly used files.
|
|
|
|
*/
|
2020-08-29 12:57:45 +02:00
|
|
|
final class MDTooManyFilesUploadException extends Exception {
|
2020-07-25 23:44:44 +02:00
|
|
|
/**
|
|
|
|
* Error message.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function errorMessage() {
|
|
|
|
//error message
|
|
|
|
$errorMsg = 'This file\'s extension or mimetype is incorrect: ' . $this->getMessage();
|
|
|
|
return $errorMsg;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|