curl_errno

Supported Versions: PHP 4 >= 4.0.3, PHP 5, PHP 7, PHP 8
Return the last error number
<?php curl_errno(CurlHandle $handle): int
<?php         });



        curl_exec($this->curlHandleNext);

        if (curl_errno($this->curlHandleNext) > 0) {

            $message = curl_error($this->curlHandleNext);

            $this->closeCurlHandleNext();

            throw new Exception('Failed to fetch next Lambda invocation: ' . $message);
<?php             'Content-Length: ' . strlen($jsonData),

        ]);

        curl_exec($this->curlHandleResult);

        if (curl_errno($this->curlHandleResult) > 0) {

            $errorMessage = curl_error($this->curlHandleResult);

            $this->closeCurlHandleResult();

            throw new Exception('Error while calling the Lambda runtime API: ' . $errorMessage);