Schneespur — Open-source winter service documentation software (PWA + Admin). GPS tracking via OwnTracks, weather data, photo evidence, and legally compliant service records for winter maintenance operators. License: AGPL-3.0-or-later
14 lines
316 B
PHP
14 lines
316 B
PHP
<?php
|
|
|
|
namespace Safe\Exceptions;
|
|
|
|
class CurlException extends \Exception implements SafeExceptionInterface
|
|
{
|
|
/**
|
|
* @param \CurlHandle $ch
|
|
*/
|
|
public static function createFromPhpError($ch = null): self
|
|
{
|
|
return new self($ch ? \curl_error($ch) : '', $ch ? \curl_errno($ch) : 0);
|
|
}
|
|
}
|