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\User;
use Shopware\Core\Framework\HttpException;
use Shopware\Core\Framework\Log\Package;
use Symfony\Component\HttpFoundation\Response;
#[Package('system-settings')]
class UserException extends HttpException
{
final public const SALES_CHANNEL_NOT_FOUND = 'USER__SALES_CHANNEL_NOT_FOUND';
public static function salesChannelNotFound(): HttpException
return new self(
Response::HTTP_PRECONDITION_FAILED,
self::SALES_CHANNEL_NOT_FOUND,
'No sales channel found.',
);
}