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