Moodle  2.2.1
http://www.collinsharper.com
Zend_Gdata_Gapps_ServiceException Class Reference
Inheritance diagram for Zend_Gdata_Gapps_ServiceException:
Collaboration diagram for Zend_Gdata_Gapps_ServiceException:

Public Member Functions

 __construct ($errors=null)
 addError ($error)
 setErrors ($array)
 getErrors ()
 getError ($errorCode)
 hasError ($errorCode)
 importFromString ($string)
 __toString ()

Protected Attributes

 $_rootElement = "AppsForYourDomainErrors"
 $_errors = array()

Detailed Description

Definition at line 49 of file ServiceException.php.


Constructor & Destructor Documentation

__construct ( errors = null)

Create a new ServiceException.

Returns:
array An array containing a collection of Zend_Gdata_Gapps_Error objects.

Definition at line 67 of file ServiceException.php.

Here is the call graph for this function:


Member Function Documentation

Get a human readable version of this exception.

Returns:
string

Reimplemented from Zend_Exception.

Definition at line 201 of file ServiceException.php.

addError ( error)

Add a single Error object to the list of errors received by the server.

Parameters:
Zend_Gdata_Gapps_Error$errorAn instance of an error returned by the server. The error's errorCode must be set.
Exceptions:
Zend_Gdata_App_Exception

Definition at line 82 of file ServiceException.php.

Here is the caller graph for this function:

getError ( errorCode)

Return the Error object associated with a specific error code.

Returns:
Zend_Gdata_Gapps_Error The Error object requested, or null if not found.

Definition at line 126 of file ServiceException.php.

getErrors ( )

Get the list of errors as sent by the server inside of an AppsForYourDomainErrors tag.

Returns:
array An associative array containing a collection of Zend_Gdata_Gapps_Error objects, indexed by error code.

Definition at line 116 of file ServiceException.php.

hasError ( errorCode)

Check whether or not a particular error code was returned by the server.

Parameters:
integer$errorCodeThe error code to check against.
Returns:
boolean Whether or not the supplied error code was returned by the server.

Definition at line 143 of file ServiceException.php.

Here is the caller graph for this function:

importFromString ( string)

Import an AppsForYourDomain error from XML.

Parameters:
string$stringThe XML data to be imported
Returns:
Zend_Gdata_Gapps_ServiceException Provides a fluent interface.
Exceptions:
Zend_Gdata_App_Exception

Definition at line 154 of file ServiceException.php.

Here is the call graph for this function:

setErrors ( array)

Set the list of errors as sent by the server inside of an AppsForYourDomainErrors tag.

Parameters:
array$arrayAn associative array containing a collection of Zend_Gdata_Gapps_Error objects. All errors must have their errorCode value set.
Exceptions:
Zend_Gdata_App_Exception

Definition at line 102 of file ServiceException.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$_errors = array() [protected]

Definition at line 59 of file ServiceException.php.

$_rootElement = "AppsForYourDomainErrors" [protected]

Definition at line 52 of file ServiceException.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations