Add new exception MDNewVocabEntryIsStrictlyTypedAsTag
This commit is contained in:
parent
df08f193bb
commit
203b7631cd
27
exceptions/updates/MDNewVocabEntryIsStrictlyTypedAsTag.php
Normal file
27
exceptions/updates/MDNewVocabEntryIsStrictlyTypedAsTag.php
Normal 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();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user