InvoiceProcessException.php
Pfad: src/Application/Rechnung/InvoiceProcessException.php
Ext: php
Größe: 810 Bytes
Geändert: 2026-07-16 14:10:52+02
<?php
declare(strict_types=1);
namespace Demo\Application\Rechnung;
/**
* Fachlicher Fehler mit strukturierter Kennung fuer Retry- und Statuslogik.
*/
final class InvoiceProcessException extends \RuntimeException
{
/**
* @param string $errorCode Domainfehlercode.
* @param string $step Betroffener Schritt.
* @param string $message Fehlermeldung.
* @param int $code PHP-Errorcode.
* @param \Throwable|null $previous Untergeordnete Ausnahme.
*/
public function __construct(
public readonly string $errorCode,
public readonly string $step,
string $message,
int $code = 0,
?\Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
}
}