Update MDSearchResultIsEmptyToCatch
This commit is contained in:
parent
cbd73e2f4d
commit
ff028ff7de
18
exceptions/page/MDSearchResultIsEmptyToCatch.php
Normal file
18
exceptions/page/MDSearchResultIsEmptyToCatch.php
Normal 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>).';
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user