2016-10-19 09:57:06 -04:00
|
|
|
<?php declare(strict_types=1);
|
2016-08-31 12:18:46 -04:00
|
|
|
/**
|
2016-09-05 16:43:37 -04:00
|
|
|
* Banker
|
2016-08-31 12:18:46 -04:00
|
|
|
*
|
|
|
|
* A Caching library implementing psr/cache
|
|
|
|
*
|
2019-12-10 11:02:02 -05:00
|
|
|
* PHP version 7.2
|
2016-08-31 12:18:46 -04:00
|
|
|
*
|
2016-09-05 16:43:37 -04:00
|
|
|
* @package Banker
|
2016-08-31 12:18:46 -04:00
|
|
|
* @author Timothy J. Warren <tim@timshomepage.net>
|
2019-12-10 11:02:02 -05:00
|
|
|
* @copyright 2016 - 2019 Timothy J. Warren
|
2016-08-31 12:18:46 -04:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
2019-12-10 11:02:02 -05:00
|
|
|
* @version 3.0.0
|
2016-09-05 16:43:37 -04:00
|
|
|
* @link https://git.timshomepage.net/timw4mail/banker
|
2016-08-31 12:18:46 -04:00
|
|
|
*/
|
|
|
|
namespace Aviat\Banker\Exception;
|
|
|
|
|
|
|
|
use Psr\Cache\InvalidArgumentException as InvalidArgumentExceptionInterface;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Exception interface for invalid cache arguments.
|
|
|
|
*
|
|
|
|
* Any time an invalid argument is passed into a method it must throw an
|
|
|
|
* exception class which implements Psr\Cache\InvalidArgumentException.
|
|
|
|
*/
|
|
|
|
class InvalidArgumentException extends CacheException implements InvalidArgumentExceptionInterface {
|
2016-10-19 09:57:06 -04:00
|
|
|
|
2016-09-06 17:03:43 -04:00
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*
|
|
|
|
* @param string $message
|
|
|
|
* @param int $code
|
|
|
|
* @param \Exception $previous
|
|
|
|
*/
|
2016-10-19 09:57:06 -04:00
|
|
|
public function __construct(string $message = "Cache key must be a string.", int $code = 0, \Exception $previous = NULL)
|
2016-09-06 17:03:43 -04:00
|
|
|
{
|
|
|
|
parent::__construct($message, $code, $previous);
|
|
|
|
}
|
2016-08-31 12:18:46 -04:00
|
|
|
}
|