|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($errors=null) | |
| addError ($error) | |
| setErrors ($array) | |
| getErrors () | |
| getError ($errorCode) | |
| hasError ($errorCode) | |
| importFromString ($string) | |
| __toString () | |
Protected Attributes | |
| $_rootElement = "AppsForYourDomainErrors" | |
| $_errors = array() | |
Definition at line 49 of file ServiceException.php.
| __construct | ( | $ | errors = null | ) |
Create a new ServiceException.
Definition at line 67 of file ServiceException.php.

| __toString | ( | ) |
Get a human readable version of this exception.
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.
| Zend_Gdata_Gapps_Error | $error | An instance of an error returned by the server. The error's errorCode must be set. |
| Zend_Gdata_App_Exception |
Definition at line 82 of file ServiceException.php.

| getError | ( | $ | errorCode | ) |
Return the Error object associated with a specific error code.
Definition at line 126 of file ServiceException.php.
| getErrors | ( | ) |
Get the list of errors as sent by the server inside of an AppsForYourDomainErrors tag.
Definition at line 116 of file ServiceException.php.
| hasError | ( | $ | errorCode | ) |
Check whether or not a particular error code was returned by the server.
| integer | $errorCode | The error code to check against. |
Definition at line 143 of file ServiceException.php.

| importFromString | ( | $ | string | ) |
Import an AppsForYourDomain error from XML.
| string | $string | The XML data to be imported |
| Zend_Gdata_App_Exception |
Definition at line 154 of file ServiceException.php.

| setErrors | ( | $ | array | ) |
Set the list of errors as sent by the server inside of an AppsForYourDomainErrors tag.
| array | $array | An associative array containing a collection of Zend_Gdata_Gapps_Error objects. All errors must have their errorCode value set. |
| Zend_Gdata_App_Exception |
Definition at line 102 of file ServiceException.php.


$_errors = array() [protected] |
Definition at line 59 of file ServiceException.php.
$_rootElement = "AppsForYourDomainErrors" [protected] |
Definition at line 52 of file ServiceException.php.