mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-15 10:13:17 +03:00
@@ -443,12 +443,8 @@ class Router
|
||||
}
|
||||
}
|
||||
|
||||
} catch (\Throwable $e) {
|
||||
if ($e instanceof Exception) {
|
||||
return $this->handleException($e);
|
||||
}
|
||||
|
||||
return $this->handleException(new Exception($e->getMessage(), $e->getCode()));
|
||||
} catch (Exception $e) {
|
||||
return $this->handleException($e);
|
||||
}
|
||||
|
||||
if ($methodNotAllowed === true) {
|
||||
|
||||
Reference in New Issue
Block a user