Add new exception MDRequiredConfigNotSet for describing missing configs
This commit is contained in:
1 parent
c7af1dc144
commit
714b1aa395
1 file changed
+21
@@ -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;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in new issue
Block a user