Пример #1
0
 /**
  * GET a URI using client object.
  * This method overrides the default behavior of App,
  * providing support for GApps\ServiceException.
  *
  * @param string $uri GET URI
  * @param array $extraHeaders Extra headers to add to the request, as an
  *        array of string-based key/value pairs.
  * @throws App\HttpException
  * @throws GApps\ServiceException
  * @return \Zend\Http\Response
  */
 public function get($uri, $extraHeaders = array())
 {
     try {
         return parent::get($uri, $extraHeaders);
     } catch (App\HttpException $e) {
         self::throwServiceExceptionIfDetected($e);
     }
 }