diff --git a/exceptions/updates/MDInvalidNodaLink.php b/exceptions/updates/MDInvalidNodaLink.php new file mode 100644 index 0000000..13308b6 --- /dev/null +++ b/exceptions/updates/MDInvalidNodaLink.php @@ -0,0 +1,24 @@ + + */ +declare(strict_types = 1); + +/** + * Custom exception class to be raised when trying to use a language that is not + * accepted by museum-digital. + */ +final class MDInvalidNodaLink extends Exception { + /** + * Error message. + * + * @return string + */ + public function errorMessage() { + //error message + return 'The noda link is not valid: ' . $this->getMessage(); + + } +}