JEMBOT MAWOT Bypass Shell

Current Path : /home/cinepatreb/billetterie/src/Core/Domain/Currency/Exception/
Upload File :
Current File : /home/cinepatreb/billetterie/src/Core/Domain/Currency/Exception/CurrencyConstraintException.php

<?php
/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 */

namespace PrestaShop\PrestaShop\Core\Domain\Currency\Exception;

/**
 * Is thrown when currency constraints are violated
 */
class CurrencyConstraintException extends CurrencyException
{
    /**
     * Code used when the ISO code doesn't respect it's appropriate format
     *
     * @see AlphaIsoCode::PATTERN
     */
    public const INVALID_ISO_CODE = 1;

    /**
     * Code used when an invalid exchange rate is used (positive float expected)
     *
     * @see ExchangeRate
     */
    public const INVALID_EXCHANGE_RATE = 2;

    /**
     * Code used when trying to insert a currency already in database
     */
    public const CURRENCY_ALREADY_EXISTS = 3;

    /**
     * Code used when an invalid liveExchangeRate is used (boolean expected)
     */
    public const INVALID_LIVE_EXCHANGE_RATES = 4;

    /**
     * Code used when the numeric ISO code doesn't respect it's appropriate format
     *
     * @see NumericIsoCode::PATTERN
     */
    public const INVALID_NUMERIC_ISO_CODE = 5;

    /**
     * Code used when trying to set an empty array of names
     */
    public const EMPTY_NAME = 6;

    /**
     * Code used when trying to set an empty array of symbols
     */
    public const EMPTY_SYMBOL = 7;

    /**
     * Code used when an invalid precision is used (positive integer expected)
     *
     * @see Precision
     */
    public const INVALID_PRECISION = 8;

    /**
     * Code used when an invalid name is used
     */
    public const INVALID_NAME = 9;

    /**
     * Code used when an invalid symbol is used
     */
    public const INVALID_SYMBOL = 10;

    /**
     * Code used when an invalid pattern is used
     */
    public const INVALID_PATTERN = 11;

    /**
     * @var int Code is used when empty data is used when deleting currencies
     */
    public const EMPTY_BULK_DELETE = 12;

    /**
     * @var int Code is used when empty data is used when toggling currencies
     */
    public const EMPTY_BULK_TOGGLE = 13;

    /**
     * @var int When currency id value is invalid
     */
    public const INVALID_ID = 14;
}

xxxxx1.0, XXX xxxx