Skip to content

Commit 1ab8e64

Browse files
committed
Update README.md
1 parent a7dee72 commit 1ab8e64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
907907
PHPRouter 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
911911
When 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).

0 commit comments

Comments
 (0)