Add exception for MDInaccessiblePropertyException for use in generic
getters
This commit is contained in:
parent
714b1aa395
commit
37383c3b1e
21
exceptions/generic/MDInaccessiblePropertyException.php
Normal file
21
exceptions/generic/MDInaccessiblePropertyException.php
Normal 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;
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user