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\Promotion\Exception;
use Shopware\Core\Framework\ShopwareHttpException;
use Symfony\Component\HttpFoundation\Response;
class PatternNotComplexEnoughException extends ShopwareHttpException
{
public const ERROR_CODE = 'PROMOTION__INDIVIDUAL_CODES_PATTERN_INSUFFICIENTLY_COMPLEX';
public function __construct()
parent::__construct(
'The amount of possible codes is too low for the current pattern. Make sure your pattern is sufficiently complex.'
);
}
public function getErrorCode(): string
return self::ERROR_CODE;
public function getStatusCode(): int
return Response::HTTP_BAD_REQUEST;