Adds custom exception
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
/nbproject/
|
||||
/vendor/
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Kavalanche\Router;
|
||||
|
||||
/**
|
||||
* @author wojtek
|
||||
*/
|
||||
class RouteNotFoundException extends \Exception {
|
||||
|
||||
}
|
||||
+1
-1
@@ -46,7 +46,7 @@ class Router {
|
||||
}
|
||||
}
|
||||
http_response_code(404);
|
||||
throw new Exception('Route not found!');
|
||||
throw new RouteNotFoundException('Route not found!');
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user