Flarum\Api\Handler\ModelNotFoundExceptionHandler::handle PHP Method

handle() public method

public handle ( Exception $e )
$e Exception
    public function handle(Exception $e)
    {
        $status = 404;
        $error = ['status' => (string) $status, 'code' => 'resource_not_found'];
        return new ResponseBag($status, [$error]);
    }
ModelNotFoundExceptionHandler