Add some known exception types

This commit is contained in:
jrenslin authored and Stefan Rohde-Enslin committed 2020-07-20 13:47:53 +02:00
1 parent ccbf528bf3
commit 33484f9f23
1 file changed
+5 -1
+5 -1
View File
@@ -30,11 +30,15 @@ final public static function categorizeError(Throwable $exception):int {
|| $exception instanceof MDpageParameterNotFromListException
|| $exception instanceof MDmainEntityNotExistentException
|| $exception instanceof MDmainEntityNotPublicException
|| $exception instanceof MDwriteAccessDeniedException
|| $exception instanceof MDNoUpdateVarSetException
|| $exception instanceof MDDBConnectionImpossible
|| $exception instanceof MDPageNotInAggregatedException
|| $exception instanceof MDWrongFileType
|| $exception instanceof MDTooManyFilesUploadException
|| $exception instanceof MDMysqliExpectedError
|| $exception instanceof MDMysqliTimeout
|| $exception instanceof MDMysqliInvalidInputEncoding
|| $exception instanceof MDPageNotInAggregatedException
) {
return self::MD_ERROR_KNOWN;
}