Add exception for MDInaccessiblePropertyException for use in generic

getters
This commit is contained in:
Joshua Ramon Enslin 2020-08-24 20:19:15 +02:00 committed by Stefan Rohde-Enslin
parent 714b1aa395
commit 37383c3b1e

View File

@ -0,0 +1,21 @@
<?PHP
declare(strict_types = 1);
/**
* Custom exception class for errors loading configuration information.
*/
class MDInaccessiblePropertyException extends Exception {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
$errorMsg = 'Property is inaccessible';
return $errorMsg;
}
}