diff --git a/exceptions/updates/MDUploadTooLargeException.php b/exceptions/updates/MDUploadTooLargeException.php new file mode 100644 index 0000000..ffa983f --- /dev/null +++ b/exceptions/updates/MDUploadTooLargeException.php @@ -0,0 +1,25 @@ + + */ +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(); + + } +}