Service/BaseService.php
protected function retrieve($url)
    {
        if ($this->curlWrapper->error) {
            throw new StarcraftConnectionLayerException($this->curlWrapper->error_message, $this->curlWrapper->error_code);
        }
    }
protected function retrieve($url)
    {
        if ($this->curlWrapper->error) {
            throw new StarcraftConnectionLayerException($this->curlWrapper->error_message, $this->curlWrapper->error_code);
        }
    }
protected function retrieve ( $ url ) { if ( $ this -> curlWrapper -> error ) { throw new StarcraftConnectionLayerException ( $ this -> curlWrapper -> error_message , $ this -> curlWrapper -> error_code ) ; } }
Method that allows for easy retrieval of data from a URL, and triggers a certain type of exception when something goes wrong.

@param string $url The URL that should be accessed.
@throws \petrepatrasc\StarcraftConnectionLayerBundle\Exception\StarcraftConnectionLayerException
Method that allows for easy retrieval of data from a URL and triggers a certain type of exception when something goes wrong .