Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Gdata_Gapps_ServiceException Class Reference

Public Member Functions

 __construct ($errors=null)
 Create a new ServiceException.
 
 addError ($error)
 Add a single Error object to the list of errors received by the server.
 
 setErrors ($array)
 Set the list of errors as sent by the server inside of an AppsForYourDomainErrors tag.
 
 getErrors ()
 Get the list of errors as sent by the server inside of an AppsForYourDomainErrors tag.
 
 getError ($errorCode)
 Return the Error object associated with a specific error code.
 
 hasError ($errorCode)
 Check whether or not a particular error code was returned by the server.
 
 importFromString ($string)
 Import an AppsForYourDomain error from XML.
 
 __toString ()
 Get a human readable version of this exception.
 
- Public Member Functions inherited from Zend_Exception
 __construct ($msg= '', $code=0, Exception $previous=null)
 Construct the exception.
 
 __call ($method, array $args)
 Overloading.
 
 __toString ()
 String representation of the exception.
 

Protected Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from Zend_Exception
 _getPrevious ()
 Returns previous Exception.
 

Constructor & Destructor Documentation

__construct (   $errors = null)

Create a new ServiceException.

Returns
array An array containing a collection of Zend_Gdata_Gapps_Error objects.

Member Function Documentation

__toString ( )

Get a human readable version of this exception.

Returns
string
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
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.
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.
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.
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
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

Member Data Documentation

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