24 lines
435 B
PHP
24 lines
435 B
PHP
|
<?PHP
|
||
|
declare(strict_types = 1);
|
||
|
|
||
|
/**
|
||
|
* Exception thrown in case an erroneously duplicate link is to be entered in a
|
||
|
* linking table.
|
||
|
*/
|
||
|
class MDDuplicateLinkException extends Exception {
|
||
|
|
||
|
/**
|
||
|
* Error message.
|
||
|
*
|
||
|
* @return string
|
||
|
*/
|
||
|
public function errorMessage() {
|
||
|
|
||
|
//error message
|
||
|
$errorMsg = 'Duplicate link exception: ' . $this->getMessage() . '.';
|
||
|
return $errorMsg;
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|