Add new exception MDNewVocabEntryIsStrictlyTypedAsTag

This commit is contained in:
Joshua Ramon Enslin 2024-03-04 03:29:39 +01:00
parent df08f193bb
commit 203b7631cd
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -0,0 +1,27 @@
<?PHP
/**
* This file contains an exception class to be used when trying to enter
* a vocabulary entry in the wrong vocabulary.
*
* @file
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
*/
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();
}
}