From 203b7631cdeddee6b231e6852087d18762fb89b7 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Mon, 4 Mar 2024 03:29:39 +0100 Subject: [PATCH] Add new exception MDNewVocabEntryIsStrictlyTypedAsTag --- .../MDNewVocabEntryIsStrictlyTypedAsTag.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 exceptions/updates/MDNewVocabEntryIsStrictlyTypedAsTag.php diff --git a/exceptions/updates/MDNewVocabEntryIsStrictlyTypedAsTag.php b/exceptions/updates/MDNewVocabEntryIsStrictlyTypedAsTag.php new file mode 100644 index 0000000..9f7d111 --- /dev/null +++ b/exceptions/updates/MDNewVocabEntryIsStrictlyTypedAsTag.php @@ -0,0 +1,27 @@ + + */ +declare(strict_types = 1); + +/** + * This file contains an exception class to be used when trying to enter + * a vocabulary entry in the wrong vocabulary. + */ +final class MDNewVocabEntryIsStrictlyTypedAsTag extends MDgenericInvalidInputsException { + /** + * Error message. + * + * @return string + */ + public function errorMessage() { + //error message + return 'The entered term is known to always represent a tag entry. ' . $this->getMessage(); + + } +}