Add exception to be thrown if an input string is distinctly typed to
another type of vocabulary
This commit is contained in:
parent
f7f87a58c9
commit
df08f193bb
|
@ -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.';
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user