Class Picasa_Exception

Description

Defines an exception originating within the Picasa API. This is used as a skeleton that other Picasa Exceptions will extend and is typically thrown when an unknwon error occurs. If the error type is known, usually an extended version of this class will be thrown.

  • author: Cameron Hinkle
  • version: Version 3.0
  • copyright: Copyright (c) 2007 Cameron Hinkle
  • since: Version 3.0
  • license: GNU Public License Version 3

Located in /Picasa/Exception.php (line 16)

Exception
   |
   --Picasa_Exception
Direct descendents
Class Description
Picasa_Exception_BadRequestException Represents an HTTP Error 400 Bad Request.
Picasa_Exception_CaptchaRequiredException Indicates that Google issued a CAPTCHA challenge when the client was attempting to login a user.
Picasa_Exception_ConflictException Represents an HTTP Error 409 Conflict.
Picasa_Exception_FailedAuthorizationException Indicates that an attempt to authorize the user has failed for some reason.
Picasa_Exception_FileNotFoundException This exception indicates that an HTTP Error 404 File Not Found error has occured when requesting a file on a remote server.
Picasa_Exception_InternalServerErrorException This indicates that an HTTP Error 500 Internal Server Error has occured.
Picasa_Exception_InvalidUsernameOrPasswordException Indicates that the user's attempt to login using Client Login failed because he entered the wrong username or password. There is no way in Picasa to determine if the username or the password is incorrect, just that one of them was.
Picasa_Exception_UnauthorizedException Indicates that an Error 401 Unauthorized response was recieved from the host after a request.
Variable Summary
string $response
string $url
Method Summary
Picasa_Exception __construct (string $message, [string $response = null], [string $url = null], [ $code = 0])
string getResponse ()
string getUrl ()
string __toString ()
Variables
string $response (line 25)

If the exception originated from a request to another server, this field holds the entire contents of the response, including the headers.

  • access: private
string $url (line 34)

If the exception originated from a request to another server, this field holds the URL that was requested.

  • access: private

Inherited Variables

Inherited from Exception (Internal Class)

$code
$file
$line
$message
$string
$trace
Methods
Constructor __construct (line 66)

Constructs a Picasa_Exception object.

  • access: public
Picasa_Exception __construct (string $message, [string $response = null], [string $url = null], [ $code = 0])
  • string $message: The error message describing why the exception was thrown.
  • string $response: If the exception originated from a request to another server, this field holds the entire contents of the response, including the headers. Optional, the default is null.
  • string $url: If the exception originated from a request to another server, this field holds the URL that was requested. Optional, the default is null.
  • $code

Redefinition of:
Exception::constructor __construct ( [$message = ], [$code = ] )

Redefined in descendants as:
getResponse (line 52)

Getter method for $response field.

  • access: public
string getResponse ()
getUrl (line 42)

Getter method for $url field.

  • access: public
string getUrl ()
__toString (line 77)

Constructs a textual representation of the current instantiation.

  • access: public
string __toString ()

Redefinition of:
Exception::__toString ( )

Redefined in descendants as:

Inherited Methods

Inherited From Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )

Documentation generated on Tue, 02 Jun 2009 14:51:52 -0700 by phpDocumentor 1.4.1