Add new exception MDUploadTooLargeException

This commit is contained in:
Joshua Ramon Enslin 2023-05-19 18:10:57 +02:00
parent 39ce16f72d
commit eedc05d365
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -0,0 +1,25 @@
<?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.
*/
final class MDUploadTooLargeException extends Exception {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
return 'This file\'s extension or mimetype is incorrect: ' . $this->getMessage();
}
}