File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -891,7 +891,7 @@ try {
891891 $router->publish("Error 404! Not found!");
892892 //...
893893
894- } catch(PHPRouterError $e) {
894+ } catch(Exception $e) {
895895 // Log details...
896896 $router->publish("Sorry, there is an internal error, we will fix it asap!");
897897}
@@ -905,7 +905,7 @@ The exception message contain it's code like `404`.
905905
906906### Your application exceptions
907907PHPRouter doesn't manipulate your application exceptions,
908- so you can catch them like ` HttpError ` and ` PHPRouterError ` exceptions .
908+ so you can catch them like ` HttpError ` exception .
909909
910910## Template Engine
911911When you use a router for your application, you will find it out soon which you need a ** template engine** too.
@@ -914,5 +914,5 @@ I have created a template engine package too and you may download it at:
914914[ PHPTemplate] ( https://github.com/miladrahimi/phptemplate ) .
915915
916916## License
917- PHPTemplate is created by [ Milad Rahimi] ( http://miladrahimi.com )
918- and released under the [ MIT License] ( http://opensource.org/licenses/mit-license.php ) .
917+ PHPRouter is created by [ Milad Rahimi] ( http://miladrahimi.com )
918+ and released under the [ MIT License] ( http://opensource.org/licenses/mit-license.php ) .
You can’t perform that action at this time.
0 commit comments