for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Shopware\Core\Checkout\Customer;
use Shopware\Core\Framework\HttpException;
use Shopware\Core\Framework\Log\Package;
use Symfony\Component\HttpFoundation\Response;
#[Package('customer-order')]
class CustomerException extends HttpException
{
public const CUSTOMER_GROUP_NOT_FOUND = 'CHECKOUT__CUSTOMER_GROUP_NOT_FOUND';
public static function customerGroupNotFound(string $id): self
return new self(
Response::HTTP_BAD_REQUEST,
self::CUSTOMER_GROUP_NOT_FOUND,
'Customer group with id "{{ id }}" not found',
['id' => $id]
);
}