]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - extlib/HTTP/Request2/Exception.php
Updating external libraries for net access
[quix0rs-gnu-social.git] / extlib / HTTP / Request2 / Exception.php
index 530c23b9ceca81bff1a6eabae0ba5f2df644b36d..b7b8d8d0379eb82417900d81f97b9276d2707db1 100644 (file)
@@ -6,7 +6,7 @@
  *\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
@@ -49,10 +49,13 @@ require_once 'PEAR/Exception.php';
 /**\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
@@ -76,34 +79,34 @@ class HTTP_Request2_Exception extends PEAR_Exception
     /** 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
@@ -113,11 +116,16 @@ class HTTP_Request2_Exception extends PEAR_Exception
 /**\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
@@ -129,11 +137,16 @@ class HTTP_Request2_NotImplementedException extends HTTP_Request2_Exception {}
  *\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
@@ -141,20 +154,30 @@ class HTTP_Request2_LogicException extends HTTP_Request2_Exception {}
  * 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