Source for file Exception.php
Documentation is available at Exception.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* The Services_Digg Exception
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
* @author Joe Stump <joe@joestump.net>
* @copyright 1997-2007 The PHP Group
* @license http://www.php.net/license/3_0.txt PHP License 3.0
* @link http://pear.php.net/package/Services_Digg
require_once 'PEAR/Exception.php';
* Services_Digg_Exception
* @author Joe Stump <joe@joestump.net>
* The the call that likely caused the exception
* The raw response from the API when the exception was called
* @param string $response
parent ::__construct ($message, $code);
$this->response = $response;
* Get the last call that probably caused this exception
* Get the raw API response from the last call
* Override the PEAR_Exception::__toString() method with a text-only pretty
* formatted string with the message, code and API call that generated the
return $this->getMessage () . ' (Code: ' . $this->getCode () . ', Call: ' . $this->getCall() . ')';
Documentation generated on Fri, 10 Jul 2009 01:30:03 +0000 by phpDocumentor 1.4.2. PEAR Logo Copyright © PHP Group 2004.
|