MDErrorReporter/exceptions/page/MDSearchResultIsEmptyToCatch.php

19 lines
458 B
PHP
Raw Normal View History

2023-09-20 01:19:04 +02:00
<?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>).';
}
}