Add exception class MDTemporarilyUnavailableException
This commit is contained in:
@@ -37,6 +37,7 @@ final class MDErrorReporter {
|
|||||||
|| $exception instanceof MDMysqliExpectedError
|
|| $exception instanceof MDMysqliExpectedError
|
||||||
|| $exception instanceof MDcouldNotSetPublic
|
|| $exception instanceof MDcouldNotSetPublic
|
||||||
|| $exception instanceof MDInvalidNodaLink
|
|| $exception instanceof MDInvalidNodaLink
|
||||||
|
|| $exception instanceof MDTemporarilyUnavailableException
|
||||||
) {
|
) {
|
||||||
return MDErrorCategory::known;
|
return MDErrorCategory::known;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?PHP
|
||||||
|
declare(strict_types = 1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Custom exception class for presenting that a functionality is currently unavailable.
|
||||||
|
*/
|
||||||
|
final class MDTemporarilyUnavailableException extends Exception {
|
||||||
|
/**
|
||||||
|
* Error message.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function errorMessage() {
|
||||||
|
//error message
|
||||||
|
return 'This functionality is currently unavailable';
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user