if (!Feature::
isActive('v6.6.0.0'
)) { return new RenderHeaderException($message);
} return new self(Response::HTTP_BAD_REQUEST, self::RENDER_HEADER_EXCEPTION, self::
getErrorMessage($message));
} public static function renderProductException(string
$message): ShopwareHttpException
{ if (!Feature::
isActive('v6.6.0.0'
)) { return new RenderProductException($message);
} return new self(Response::HTTP_BAD_REQUEST, self::RENDER_PRODUCT_EXCEPTION, self::
getErrorMessage($message));
} private static function getErrorMessage(string
$message): string
{ return sprintf('Failed rendering string template using Twig: %s',
$message);
}}