protected static function getError($hCurl) {
        $errorNo  = curl_errno($hCurl);
        $errorStr = curl_error($hCurl);

        if (isset(self::$errors[$errorNo])) {
            $errorNo = self::$errors[$errorNo];
        }
        else {
            Logger::log('Unknown CURL error code: '.$errorNo, L_WARN);
        }

        return $errorNo.' ('.$errorStr.')';
    }