- php-fints Bibliothek von 3.7.0 auf 4.0.0 aktualisiert - Parser-Fix: Ignoriert zusätzliche Bank-Felder statt Exception - HKEKA Segmente implementiert (HIEKASv5, HKEKAv5, HIEKAv5) - HKKAA Segmente implementiert (HIKAASv1, HKKAAv1) - GetStatementFromArchive und GetElectronicStatement Actions HINWEIS: HKKAA/HKEKA funktionieren noch nicht mit VR Bank (Fehler "unerwarteter Aufbau wrt DE 2" - Kontoverbindungsformat) Normale Funktionalität (Transaktionsimport) ist nicht betroffen. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
50 lines
981 B
PHP
50 lines
981 B
PHP
<?php
|
|
|
|
namespace Fhp;
|
|
|
|
class CurlException extends \Exception
|
|
{
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $curlInfo;
|
|
|
|
/**
|
|
* @var string|null
|
|
*/
|
|
protected $response;
|
|
|
|
/**
|
|
* @var string|null
|
|
*/
|
|
protected $curlMessage;
|
|
|
|
public function __construct(string $message, ?string $response, int $code = 0, array $curlInfo = [], ?string $curlMessage = null)
|
|
{
|
|
parent::__construct($message, $code, null);
|
|
$this->response = $response;
|
|
$this->curlInfo = $curlInfo;
|
|
$this->curlMessage = $curlMessage;
|
|
}
|
|
|
|
public function getResponse(): ?string
|
|
{
|
|
return $this->response;
|
|
}
|
|
|
|
/**
|
|
* Gets the curl info from request / response.
|
|
*/
|
|
public function getCurlInfo(): array
|
|
{
|
|
return $this->curlInfo;
|
|
}
|
|
|
|
/**
|
|
* Gets the curl message from request / response.
|
|
*/
|
|
public function getCurlMessage(): ?string
|
|
{
|
|
return $this->curlMessage;
|
|
}
|
|
}
|