for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Shopware\Core\System\StateMachine\Exception;
use Shopware\Core\Framework\Log\Package;
use Shopware\Core\System\StateMachine\StateMachineException;
use Symfony\Component\HttpFoundation\Response;
#[Package('checkout')]
class UnnecessaryTransitionException extends StateMachineException
{
public function __construct(string $transition)
parent::__construct(
Response::HTTP_BAD_REQUEST,
self::UNNECESSARY_TRANSITION,
'The transition "{{ transition }}" is unnecessary, already on desired state.',
['transition' => $transition]
);
}