Add new exception MDRequiredConfigNotSet for describing missing configs

This commit is contained in:
Joshua Ramon Enslin 2020-08-24 11:50:06 +02:00 committed by Stefan Rohde-Enslin
parent c7af1dc144
commit 714b1aa395

View 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;
}
}