Gdata exceptions

Class to represent exceptions that occur during Gdata operations.

category Zend
package Zend_Gdata
subpackage App
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Gdata_App_Exception

 Methods

Overloading

__call(string $method, array $args) : mixed
Inherited

For PHP < 5.3.0, provides access to the getPrevious() method.

Parameters

$method

string

$args

array

Returns

mixed

Create a new Zend_Gdata_App_HttpException

__construct(string $message = null, $e = null, $response = null

Parameters

$message

string

Optionally set a message

$e

$response

Construct the exception

__construct(string $msg = '', integer $code = 0, \Exception $previous = null) : void
Inherited

Parameters

$msg

string

$code

integer

$previous

\Exception

String representation of the exception

__toString() : string
Inherited

Returns

string

Get the Zend_Http_Client_Exception.

getHttpClientException() : \Zend_Http_Client_Exception

Returns

\Zend_Http_Client_Exception

Get the body of the Zend_Http_Response

getRawResponseBody() : string

Returns

string

Get the Zend_Http_Response.

getResponse() : \Zend_Http_Response

Returns

\Zend_Http_Response

Set the Zend_Http_Client_Exception.

setHttpClientException(\Zend_Http_Client_Exception $value) 

Parameters

$value

\Zend_Http_Client_Exception

Set the Zend_Http_Response.

setResponse(\Zend_Http_Response $response) 

Parameters

$response

\Zend_Http_Response

Returns previous Exception

_getPrevious() : \Exception | null
Inherited

Returns

\Exceptionnull

 Properties

 

$_httpClientException

$_httpClientException 

Default

null
 

$_response

$_response 

Default

null
 

$_previous

$_previous : null | \Exception

Default

null