diff --git a/exceptions/updates/MDInvalidInputDate.php b/exceptions/updates/MDInvalidInputDate.php new file mode 100644 index 0000000..37a8193 --- /dev/null +++ b/exceptions/updates/MDInvalidInputDate.php @@ -0,0 +1,29 @@ + + */ +declare(strict_types = 1); + +/** + * Custom exception class to be raised when trying to use a currency that is not + * accepted by museum-digital. + */ +class MDInvalidInputDate extends Exception { + + /** + * Error message. + * + * @return string + */ + public function errorMessage() { + //error message + $errorMsg = 'The following currency is not available: ' . $this->getMessage(); + return $errorMsg; + + } + +}