ldc-cocotte/domain/Exceptions/OrderTunnel/InactiveShopperException.php
Jérémy Munsch 4dd7cc82fe
feat(order): add InactiveShopperException handling in order finalization
- Introduced InactiveShopperException to manage inactive shopper scenarios.
- Updated FinalizeOrder and FinalizeOrderOutput to handle new exception.
- Enhanced TunnelController and tests to ensure proper redirection and error handling.
2026-11-15 19:59:17 +01:00

16 lines
366 B
PHP

<?php
declare(strict_types=1);
namespace Domain\Exceptions\OrderTunnel;
class InactiveShopperException extends \DomainException
{
public function __construct(
string $message = 'Employee account is no longer active.',
int $code = 0,
?\Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
}
}