Default to 404 code for RouteNotFoundException

Just want to get Stratigility’s FinalHandler showing something more apt
than “Internal server error”
This commit is contained in:
Toby Zerner 2015-06-19 15:29:27 +09:30
parent d34ddd94ed
commit 6a248ea6a6

View File

@ -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);
}
}