Add exception to be thrown if an input string is distinctly typed to

another type of vocabulary
This commit is contained in:
Joshua Ramon Enslin 2024-03-03 23:37:27 +01:00
parent f7f87a58c9
commit df08f193bb
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -0,0 +1,18 @@
<?PHP
declare(strict_types = 1);
/**
* Exception thrown in case an update failed.
*/
final class MDTypedDistinctlyToOtherVocabularyException extends Exception {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
return 'Entered vocabulary entry belongs to another vocabulary.';
}
}