Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Gdata/App/HttpException.php
Go to the documentation of this file.
00001 <?php
00002 
00027 require_once 'Zend/Gdata/App/Exception.php';
00028 
00032 require_once 'Zend/Http/Client/Exception.php';
00033 
00045 class Zend_Gdata_App_HttpException extends Zend_Gdata_App_Exception
00046 {
00047 
00048     protected $_httpClientException = null;
00049     protected $_response = null;
00050 
00058     public function __construct($message = null, $e = null, $response = null)
00059     {
00060         $this->_httpClientException = $e;
00061         $this->_response = $response;
00062         parent::__construct($message);
00063     }
00064 
00070     public function getHttpClientException()
00071     {
00072         return $this->_httpClientException;
00073     }
00074 
00080     public function setHttpClientException($value)
00081     {
00082         $this->_httpClientException = $value;
00083         return $this;
00084     }
00085 
00091     public function setResponse($response)
00092     {
00093         $this->_response = $response;
00094         return $this;
00095     }
00096 
00102     public function getResponse()
00103     {
00104         return $this->_response;
00105     }
00106 
00112     public function getRawResponseBody()
00113     {
00114         if ($this->getResponse()) {
00115             $response = $this->getResponse();
00116             return $response->getRawBody();
00117         }
00118         return null;
00119     }
00120 
00121 }
 All Data Structures Namespaces Files Functions Variables Enumerations