Add new exceptions to be thrown when encountering distinctly typed
strings
This commit is contained in:
parent
15f2645514
commit
f7f87a58c9
27
exceptions/updates/MDNewVocabEntryIsStrictlyTypedAsActor.php
Normal file
27
exceptions/updates/MDNewVocabEntryIsStrictlyTypedAsActor.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 MDNewVocabEntryIsStrictlyTypedAsActor extends MDgenericInvalidInputsException {
|
||||
/**
|
||||
* Error message.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
return 'The entered term is known to always represent an actor entry. ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
27
exceptions/updates/MDNewVocabEntryIsStrictlyTypedAsPlace.php
Normal file
27
exceptions/updates/MDNewVocabEntryIsStrictlyTypedAsPlace.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 MDNewVocabEntryIsStrictlyTypedAsPlace extends MDgenericInvalidInputsException {
|
||||
/**
|
||||
* Error message.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
return 'The entered term is known to always represent a place entry. ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
27
exceptions/updates/MDNewVocabEntryIsStrictlyTypedAsTime.php
Normal file
27
exceptions/updates/MDNewVocabEntryIsStrictlyTypedAsTime.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 MDNewVocabEntryIsStrictlyTypedAsTime extends MDgenericInvalidInputsException {
|
||||
/**
|
||||
* Error message.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
return 'The entered term is known to always represent a time entry. ' . $this->getMessage();
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user