Add exceptions special to this repo
This commit is contained in:
		
							
								
								
									
										18
									
								
								exceptions/MDInvalidNodaLinkException.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								exceptions/MDInvalidNodaLinkException.php
									
									
									
									
									
										Normal 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.'; | ||||
| 
 | ||||
|     } | ||||
| } | ||||
							
								
								
									
										21
									
								
								exceptions/MDInvalidNodaLinkLocIdIsSh.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								exceptions/MDInvalidNodaLinkLocIdIsSh.php
									
									
									
									
									
										Normal 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.'; | ||||
| 
 | ||||
|     } | ||||
| } | ||||
| 
 | ||||
		Reference in New Issue
	
	Block a user