1
0
mirror of https://github.com/flarum/core.git synced 2025-07-22 09:11:19 +02:00

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