src/Twig/CacheExtension/Exception/InvalidCacheLifetimeException.php
<?php
/**
*
* This file is part of phpFastCache.
*
* @license MIT License (MIT)
*
* For full copyright and license information, please see the docs/CREDITS.txt file.
*
* @author Georges.L (Geolim4) <contact@geolim4.com>
* @author PastisD https://github.com/PastisD
* @author Alexander (asm89) <iam.asm89@gmail.com>
* @author Khoa Bui (khoaofgod) <khoaofgod@gmail.com> http://www.phpfastcache.com
*
*/
namespace Phpfastcache\Bundle\Twig\CacheExtension\Exception;
class InvalidCacheLifetimeException extends BaseException
{
/**
* {@inheritdoc}
*/
public function __construct($lifetime, $code = 0, \Exception $previous = null)
{
parent::__construct(sprintf('Value "%s" is not a valid lifetime.', gettype($lifetime)), $code, $previous);
}
}