diff --git a/exceptions/updates/MDDownloadException.php b/exceptions/updates/MDDownloadException.php new file mode 100644 index 0000000..b357e28 --- /dev/null +++ b/exceptions/updates/MDDownloadException.php @@ -0,0 +1,25 @@ + + */ +declare(strict_types = 1); + +/** + * Custom exception class to be raised when downloading a file fails. + */ +final class MDDownloadException extends Exception { + /** + * Error message. + * + * @return string + */ + public function errorMessage() { + //error message + return 'Link could not be downloaded: ' . $this->getMessage(); + + } +}