- HKEKA v3/v4/v5 Segmente fuer phpFinTS implementiert (VR Bank unterstuetzt kein HKEKP) - GetElectronicStatement Action mit Base64-Erkennung und Quittungscode - PDF-Deduplizierung per MD5 (Bank sendet identische Saldenmitteilungen) - Saldenmitteilungen ohne Auszugsnummer werden uebersprungen - Datums-Validierung: 30.02. (Bank-Konvention) wird auf 28.02. korrigiert - Numerische Sortierung fuer statement_number (CAST statt String-Sort) - Jahr-Filter: statement_year=0 ausgeschlossen - Menue/Button: "Kontoauszuege" -> "Umsaetze" (statements.php zeigt MT940, nicht PDFs) - Redirect nach FinTS-Abruf auf aktuelles Jahr statt year=0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
50 lines
981 B
PHP
Executable file
50 lines
981 B
PHP
Executable file
<?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;
|
|
}
|
|
}
|