RenderFooterException example

public const RENDER_PRODUCT_EXCEPTION = 'PRODUCT_EXPORT__RENDER_PRODUCT_EXCEPTION';

    public static function templateBodyNotSet(): ProductExportException
    {
        return new self(Response::HTTP_BAD_REQUEST, self::TEMPLATE_BODY_NOT_SET, 'Template body not set');
    }

    public static function renderFooterException(string $message): ShopwareHttpException
    {
        if (!Feature::isActive('v6.6.0.0')) {
            return new RenderFooterException($message);
        }

        return new self(Response::HTTP_BAD_REQUEST, self::RENDER_FOOTER_EXCEPTION, self::getErrorMessage($message));
    }

    public static function renderHeaderException(string $message): ShopwareHttpException
    {
        if (!Feature::isActive('v6.6.0.0')) {
            return new RenderHeaderException($message);
        }

        
Home | Imprint | This part of the site doesn't use cookies.