Add new exception MDRequiredConfigNotSet for describing missing configs
This commit is contained in:
parent
c7af1dc144
commit
714b1aa395
21
exceptions/generic/MDRequiredConfigNotSet.php
Normal file
21
exceptions/generic/MDRequiredConfigNotSet.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?PHP
|
||||
declare(strict_types = 1);
|
||||
|
||||
/**
|
||||
* Custom exception class for errors loading configuration information.
|
||||
*/
|
||||
class MDRequiredConfigNotSet extends Exception {
|
||||
|
||||
/**
|
||||
* Error message.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Could not connect to databse. Please try again later.';
|
||||
return $errorMsg;
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user