<?php
/**
 * File containing the Categorie SIT InvalidValue Exception class
 *
 * @copyright Copyright (C) 1999-2014 eZ Systems AS. All rights reserved.
 * @license http://ez.no/licenses/gnu_gpl GNU General Public License v2.0
 * @version 
 */

namespace Ayaline\Bundle\EzSitBundle\Core\FieldType\CategoriesSit\Exception;

use eZ\Publish\Core\Base\Exceptions\InvalidArgumentException;

/**
 * Exception thrown if an invalid identifier is used for a categorie SIT
 */
class InvalidValue extends InvalidArgumentException
{
    /**
     * Creates a new exception when $value is invalid.
     *
     * @param mixed $value
     */
    public function __construct( $value )
    {
        parent::__construct(
            '$value', "'" . var_export( $value, true ) . "' is not a valid categorie SIT identifier"
        );
    }
}
