curl_error
brefphp/bref
Supported Versions: PHP 4 >= 4.0.3, PHP 5, PHP 7, PHP 8
Return a string containing the last error for the current session
curl_error
(
CurlHandle $handle
):
string
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
);
}
src/Runtime/LambdaRuntime.php
]);
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
);
}
src/Runtime/LambdaRuntime.php