*\r
* LICENSE:\r
*\r
- * Copyright (c) 2008-2011, Alexey Borzov <avb@php.net>\r
+ * Copyright (c) 2008-2012, Alexey Borzov <avb@php.net>\r
* All rights reserved.\r
*\r
* Redistribution and use in source and binary forms, with or without\r
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
*\r
- * @category HTTP\r
- * @package HTTP_Request2\r
- * @author Alexey Borzov <avb@php.net>\r
- * @license http://opensource.org/licenses/bsd-license.php New BSD License\r
- * @version SVN: $Id: Exception.php 308629 2011-02-24 17:34:24Z avb $\r
- * @link http://pear.php.net/package/HTTP_Request2\r
+ * @category HTTP\r
+ * @package HTTP_Request2\r
+ * @author Alexey Borzov <avb@php.net>\r
+ * @license http://opensource.org/licenses/bsd-license.php New BSD License\r
+ * @version SVN: $Id: Exception.php 324415 2012-03-21 10:50:50Z avb $\r
+ * @link http://pear.php.net/package/HTTP_Request2\r
*/\r
\r
/**\r
/**\r
* Base exception class for HTTP_Request2 package\r
*\r
- * @category HTTP\r
- * @package HTTP_Request2\r
- * @version Release: 2.0.0RC1\r
- * @link http://pear.php.net/pepr/pepr-proposal-show.php?id=132\r
+ * @category HTTP\r
+ * @package HTTP_Request2\r
+ * @author Alexey Borzov <avb@php.net>\r
+ * @license http://opensource.org/licenses/bsd-license.php New BSD License\r
+ * @version Release: 2.1.1\r
+ * @link http://pear.php.net/package/HTTP_Request2\r
+ * @link http://pear.php.net/pepr/pepr-proposal-show.php?id=132\r
*/\r
class HTTP_Request2_Exception extends PEAR_Exception\r
{\r
/** Redirect to a protocol other than http(s):// */\r
const NON_HTTP_REDIRECT = 50;\r
\r
- /**\r
- * Native error code\r
- * @var int\r
- */\r
+ /**\r
+ * Native error code\r
+ * @var int\r
+ */\r
private $_nativeCode;\r
\r
- /**\r
- * Constructor, can set package error code and native error code\r
- *\r
- * @param string exception message\r
- * @param int package error code, one of class constants\r
- * @param int error code from underlying PHP extension\r
- */\r
+ /**\r
+ * Constructor, can set package error code and native error code\r
+ *\r
+ * @param string $message exception message\r
+ * @param int $code package error code, one of class constants\r
+ * @param int $nativeCode error code from underlying PHP extension\r
+ */\r
public function __construct($message = null, $code = null, $nativeCode = null)\r
{\r
parent::__construct($message, $code);\r
$this->_nativeCode = $nativeCode;\r
}\r
\r
- /**\r
- * Returns error code produced by underlying PHP extension\r
- *\r
- * For Socket Adapter this may contain error number returned by\r
- * stream_socket_client(), for Curl Adapter this will contain error number\r
- * returned by curl_errno()\r
- *\r
- * @return integer\r
- */\r
+ /**\r
+ * Returns error code produced by underlying PHP extension\r
+ *\r
+ * For Socket Adapter this may contain error number returned by\r
+ * stream_socket_client(), for Curl Adapter this will contain error number\r
+ * returned by curl_errno()\r
+ *\r
+ * @return integer\r
+ */\r
public function getNativeCode()\r
{\r
return $this->_nativeCode;\r
/**\r
* Exception thrown in case of missing features\r
*\r
- * @category HTTP\r
- * @package HTTP_Request2\r
- * @version Release: 2.0.0RC1\r
+ * @category HTTP\r
+ * @package HTTP_Request2\r
+ * @author Alexey Borzov <avb@php.net>\r
+ * @license http://opensource.org/licenses/bsd-license.php New BSD License\r
+ * @version Release: 2.1.1\r
+ * @link http://pear.php.net/package/HTTP_Request2\r
*/\r
-class HTTP_Request2_NotImplementedException extends HTTP_Request2_Exception {}\r
+class HTTP_Request2_NotImplementedException extends HTTP_Request2_Exception\r
+{\r
+}\r
\r
/**\r
* Exception that represents error in the program logic\r
*\r
* The exception will usually contain a package error code.\r
*\r
- * @category HTTP\r
- * @package HTTP_Request2\r
- * @version Release: 2.0.0RC1\r
+ * @category HTTP\r
+ * @package HTTP_Request2\r
+ * @author Alexey Borzov <avb@php.net>\r
+ * @license http://opensource.org/licenses/bsd-license.php New BSD License\r
+ * @version Release: 2.1.1\r
+ * @link http://pear.php.net/package/HTTP_Request2\r
*/\r
-class HTTP_Request2_LogicException extends HTTP_Request2_Exception {}\r
+class HTTP_Request2_LogicException extends HTTP_Request2_Exception\r
+{\r
+}\r
\r
/**\r
* Exception thrown when connection to a web or proxy server fails\r
* The exception will not contain a package error code, but will contain\r
* native error code, as returned by stream_socket_client() or curl_errno().\r
*\r
- * @category HTTP\r
- * @package HTTP_Request2\r
- * @version Release: 2.0.0RC1\r
+ * @category HTTP\r
+ * @package HTTP_Request2\r
+ * @author Alexey Borzov <avb@php.net>\r
+ * @license http://opensource.org/licenses/bsd-license.php New BSD License\r
+ * @version Release: 2.1.1\r
+ * @link http://pear.php.net/package/HTTP_Request2\r
*/\r
-class HTTP_Request2_ConnectionException extends HTTP_Request2_Exception {}\r
+class HTTP_Request2_ConnectionException extends HTTP_Request2_Exception\r
+{\r
+}\r
\r
/**\r
* Exception thrown when sending or receiving HTTP message fails\r
*\r
* The exception may contain both package error code and native error code.\r
*\r
- * @category HTTP\r
- * @package HTTP_Request2\r
- * @version Release: 2.0.0RC1\r
+ * @category HTTP\r
+ * @package HTTP_Request2\r
+ * @author Alexey Borzov <avb@php.net>\r
+ * @license http://opensource.org/licenses/bsd-license.php New BSD License\r
+ * @version Release: 2.1.1\r
+ * @link http://pear.php.net/package/HTTP_Request2\r
*/\r
-class HTTP_Request2_MessageException extends HTTP_Request2_Exception {}\r
+class HTTP_Request2_MessageException extends HTTP_Request2_Exception\r
+{\r
+}\r
?>
\ No newline at end of file