* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShopBundle\Exception; class InvalidLanguageException extends \RuntimeException { public const LOCALE_NOT_FOUND = 1; public static function localeNotFound($locale) { return new static(sprintf('The locale "%s" is not available', $locale), self::LOCALE_NOT_FOUND); } }