/**
  * {@inheritdoc}
  */
 protected function retrieve($url)
 {
     $this->curlWrapper->get($url);
     $response = json_decode($this->curlWrapper->response, true);
     if (isset($response['status']) && $response['status'] == 'nok') {
         throw new StarcraftConnectionLayerException($response['message'], $response['code']);
     }
     parent::retrieve($url);
 }
 /**
  * {@inheritdoc}
  */
 protected function retrieve($url)
 {
     $this->curlWrapper->get($url, array('api_key' => $this->getAuthorizationToken()));
     $response = json_decode($this->curlWrapper->response, true);
     if (isset($response['error'])) {
         throw new StarcraftConnectionLayerException($response['error'], 500);
     }
     parent::retrieve($url);
 }
 /**
  * {@inheritdoc}
  */
 protected function retrieve($url)
 {
     $this->curlWrapper->get($url);
     $response = $this->curlWrapper->response;
     if ($response == "Not Found") {
         throw new StarcraftConnectionLayerException("Not Found", 404);
     }
     parent::retrieve($url);
 }