Error [ 0 ]: Can only throw objects

SYSPATH/classes/Kohana/HTTP.php [ 40 ]

35 		if ( ! $e instanceof HTTP_Exception_Redirect)
36 			throw new Kohana_Exception('Invalid redirect code \':code\'', [
37 				':code' => $code
38 			]);
39 
40 		throw $e->location($uri);
41 	}
42 
43 	/**
44 	 * Checks the browser cache to see the response needs to be returned,
45 	 * execution will halt and a 304 Not Modified will be sent if the
  1. APPPATH/classes/Controller/Forum.php [ 62 ] » Kohana_HTTP::redirect(arguments)

  2. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Forum->action_set()

  3. {PHP internal call} » Kohana_Controller->execute()

  4. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke(arguments)

  5. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  6. SYSPATH/classes/Kohana/Request.php [ 1000 ] » Kohana_Request_Client->execute(arguments)

  7. DOCROOT/public/index.php [ 118 ] » Kohana_Request->execute()

Environment