Update MDSearchResultIsEmptyToCatch

This commit is contained in:
Joshua Ramon Enslin 2023-09-20 01:19:04 +02:00
parent cbd73e2f4d
commit ff028ff7de
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -0,0 +1,18 @@
<?PHP
declare(strict_types = 1);
/**
* Exception thrown in case a search result is empty and an appropriate response is to be given as per a catch statement.
*/
final class MDSearchResultIsEmptyToCatch extends Exception {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
return 'There is no entity to be shown here (id: <b>' . $this->getMessage() . '</b>).';
}
}