예제 #1
0
 /**
  * Add a single Error object to the list of errors received by the
  * server.
  *
  * @param \ZendGData\GApps\Error $error An instance of an error returned
  *          by the server. The error's errorCode must be set.
  * @throws \ZendGData\App\Exception
  */
 public function addError($error)
 {
     // Make sure that we don't try to index an error that doesn't
     // contain an index value.
     if ($error->getErrorCode() == null) {
         throw new App\Exception("Error encountered without corresponding error code.");
     }
     $this->_errors[$error->getErrorCode()] = $error;
 }