Add exception class MDTemporarilyUnavailableException

This commit is contained in:
2026-08-03 12:41:23 +02:00
parent fc6ac5e31c
commit f772b55d1e
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -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';
}
}