private function handleCurlError($errno, $message)
    {
        switch ($errno) {
            case CURLE_COULDNT_CONNECT:
            case CURLE_COULDNT_RESOLVE_HOST:
            case CURLE_OPERATION_TIMEOUTED:
                $msg = "Could not connect";
                break;
            case CURLE_SSL_CACERT:
            case CURLE_SSL_PEER_CERTIFICATE:
                $msg = "Could not verify SSL certificate.";
                break;
            default:
                $msg = "Unexpected curl error.";
        }

        $msg .= "\n\n(Network error [errno $errno]: $message)";
        throw new \LeaseCloud\Error($msg);
    }
private function handleCurlError($errno, $message)
    {
        switch ($errno) {
            case CURLE_COULDNT_CONNECT:
            case CURLE_COULDNT_RESOLVE_HOST:
            case CURLE_OPERATION_TIMEOUTED:
                $msg = "Could not connect";
                break;
            case CURLE_SSL_CACERT:
            case CURLE_SSL_PEER_CERTIFICATE:
                $msg = "Could not verify SSL certificate.";
                break;
            default:
                $msg = "Unexpected curl error.";
        }

        $msg .= "\n\n(Network error [errno $errno]: $message)";
        throw new \LeaseCloud\Error($msg);
    }
private function handleCurlError ( $ errno , $ message ) { switch ( $ errno ) { case CURLE_COULDNT_CONNECT : case CURLE_COULDNT_RESOLVE_HOST : case CURLE_OPERATION_TIMEOUTED : $ msg = "Could not connect" ; break ; case CURLE_SSL_CACERT : case CURLE_SSL_PEER_CERTIFICATE : $ msg = "Could not verify SSL certificate." ; break ; default : $ msg = "Unexpected curl error." ; } $ msg .= "\n\n(Network error [errno $errno]: $message)" ; throw new \ LeaseCloud \ Error ( $ msg ) ; }
Throw an exception with message indicating type of http error

@param number $errno
@param string $message
@throws Error
Throw an exception with message indicating type of http error