* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShopBundle\Translation\Exception; use Symfony\Component\Translation\Exception\NotFoundResourceException; /** * Will be thrown if a module name is required by a provider and not set. */ final class UnsupportedModuleException extends NotFoundResourceException { /** * @param string $providerIdentifier the provider identifier * * @return self */ public static function moduleNotProvided($providerIdentifier) { $exceptionMessage = sprintf( 'The translation provider with the identifier "%s" require a module to be set.', $providerIdentifier ); return new self($exceptionMessage); } }