Remove whitespaces from vocabulary links, add dedicated exception for

lcsh links that are actually loc links
This commit is contained in:
2023-10-16 16:44:33 +02:00
parent da6e40282d
commit 1d1a690e0f
4 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,20 @@
<?PHP
declare(strict_types = 1);
/**
* Exception thrown in case a library of congress subject headings link refers
* to the other authority files of the Library of Congress.
*/
final class MDInvalidNodaLinkLcshIdIsGeneralLoc extends MDInvalidNodaLinkException {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
return 'Inputs are not valid.';
}
}