Add exceptions special to this repo

This commit is contained in:
Joshua Ramon Enslin 2023-10-15 16:13:53 +02:00
parent ea5a186e8f
commit fe73fc7267
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<?PHP
declare(strict_types = 1);
/**
* Exception thrown in case a controlled vocabulary is to be linked using an invalid ID.
*/
class MDInvalidNodaLinkException extends MDgenericInvalidInputsException {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
return 'Inputs are not valid.';
}
}

View File

@ -0,0 +1,21 @@
<?PHP
declare(strict_types = 1);
/**
* Exception thrown in case a library of congress link refers to the subject
* headings (subject headings are a dedicated, full vocabulary according to
* md's definition).
*/
class MDInvalidNodaLinkLocIdIsSh extends MDInvalidNodaLinkException {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
return 'Inputs are not valid.';
}
}