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\Order\Exception;
use Shopware\Core\Framework\ShopwareHttpException;
use Symfony\Component\HttpFoundation\Response;
class GuestNotAuthenticatedException extends ShopwareHttpException
{
public function __construct()
parent::__construct('Guest not authenticated.');
}
public function getErrorCode(): string
return 'CHECKOUT__GUEST_NOT_AUTHENTICATED';
public function getStatusCode(): int
return Response::HTTP_FORBIDDEN;