From 6a248ea6a63a42a4d4da81c8d64d7a8a48a9b3e8 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 19 Jun 2015 15:29:27 +0930 Subject: [PATCH] Default to 404 code for RouteNotFoundException MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just want to get Stratigility’s FinalHandler showing something more apt than “Internal server error” --- framework/core/src/Http/RouteNotFoundException.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/core/src/Http/RouteNotFoundException.php b/framework/core/src/Http/RouteNotFoundException.php index 534f58a54..840f7768d 100644 --- a/framework/core/src/Http/RouteNotFoundException.php +++ b/framework/core/src/Http/RouteNotFoundException.php @@ -6,4 +6,8 @@ use Exception; class RouteNotFoundException extends Exception { + public function __construct($message = null, $code = 404, Exception $previous = null) + { + parent::__construct($message, $code, $previous); + } }