- 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.
16 lines
366 B
PHP
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);
|
|
}
|
|
}
|