2020-07-25 23:53:19 +02:00
|
|
|
<?PHP
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Exception thrown in case an erroneously duplicate link is to be entered in a
|
|
|
|
* linking table.
|
|
|
|
*/
|
2020-08-29 12:57:45 +02:00
|
|
|
final class MDDuplicateLinkException extends Exception {
|
2020-07-25 23:53:19 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Error message.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function errorMessage() {
|
|
|
|
|
|
|
|
//error message
|
|
|
|
$errorMsg = 'Duplicate link exception: ' . $this->getMessage() . '.';
|
|
|
|
return $errorMsg;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|