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