Source for file Exception.php
Documentation is available at Exception.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* An interface for Twitter's HTTP API
* @package Services_Twitter
* @author Joe Stump <joe@joestump.net>
* @author David Jean Louis <izimobil@gmail.com>
* @copyright 1997-2008 Joe Stump <joe@joestump.net>
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @version SVN: $Id: Exception.php 39 2009-01-06 12:15:17Z izimobil $
* @link http://twitter.com
* @link http://apiwiki.twitter.com
require_once 'PEAR/Exception.php';
* Exception raised by this package.
* @package Services_Twitter
* @author Joe Stump <joe@joestump.net>
* @author David Jean Louis <izimobil@gmail.com>
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link http://twitter.com
* @link http://apiwiki.twitter.com
* Call to the API that created the error
* The HTTP response returned by the API
* @var HTTP_Request2_Response $response
* @param string $msg Error message
* @param mixed $code Error code or parent exception
* @param string $call API call that generated error
* @param HTTP_Request2_Response $resp The HTTP response instance
* @see Services_Twitter_Exception::$call
* @see Services_Twitter_Exception::$response
* @link http://php.net/exceptions
public function __construct($msg = null , $code = 0 , $call = null , $resp = null )
parent ::__construct ($msg, $code);
* @see Services_Twitter_Exception::$call
* Get the API HTTP response.
* @return HTTP_Request2_Response
* @see Services_Twitter_Exception::$response
* Overload PEAR_Exception's horrible __toString implementation.
$info = 'code: ' . $this->code;
if ($this->call !== null ) {
$info .= ', call: ' . $this->call;
return sprintf('%s (%s)', $this->message, $info);
Documentation generated on Mon, 11 Mar 2019 15:39:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|