Gdata exceptions

Class to represent an exception that occurs during the use of ClientLogin. This particular exception happens when a CAPTCHA challenge is issued. This challenge is a visual puzzle presented to the user to prove that they are not an automated system.

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_AuthException

 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

Constructs the exception to handle a CAPTCHA required response.

__construct(string $captchaToken, string $captchaUrl) 

Parameters

$captchaToken

string

The CAPTCHA token ID provided by the server.

$captchaUrl

string

The URL to the CAPTCHA challenge image.

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

Retrieves the token identifier as provided by the server.

getCaptchaToken() : string

Returns

string

Retrieves the URL CAPTCHA image as provided by the server.

getCaptchaUrl() : string

Returns

string

Returns previous Exception

_getPrevious() : \Exception | null
Inherited

Returns

\Exceptionnull

 Properties

 

$_previous

$_previous : null | \Exception

Default

null
 

The token identifier from the server.

$captchaToken : string

Default

 

The URL of the CAPTCHA image.

$captchaUrl : string

Default

 Constants

 

The Google Accounts URL prefix.

ACCOUNTS_URL = 'https://www.google.com/accounts/'