. * * @category Exception * @package GNUsocial * @author Mikael Nordfeldth * @copyright 2013 Free Software Foundation, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPLv3 * @link http://www.gnu.org/software/social/ */ if (!defined('GNUSOCIAL')) { exit(1); } // Can't extend HTTP_Request2_Exception since it requires an HTTP status code which we didn't get class NoHttpResponseException extends HTTP_Request2_ConnectionException { public $url; // target URL public function __construct($url) { $this->url = $url; // We could log an entry here with the search parameters parent::__construct(sprintf(_('No HTTP response from URL %s.'), _ve($url)), self::READ_ERROR); } }