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
|
|
|
*
|
2020-05-07 19:00:38 -04:00
|
|
|
* A Caching library implementing psr/cache (PSR 6) and psr/simple-cache (PSR 16)
|
2016-08-31 12:18:46 -04:00
|
|
|
*
|
2021-02-05 17:05:56 -05:00
|
|
|
* PHP version 7.4+
|
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>
|
2021-02-05 17:05:56 -05:00
|
|
|
* @copyright 2016 - 2021 Timothy J. Warren
|
2016-08-31 12:18:46 -04:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
2021-02-05 17:05:56 -05:00
|
|
|
* @version 3.2.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;
|
|
|
|
|
2020-05-07 17:17:03 -04:00
|
|
|
use Psr\Cache\InvalidArgumentException as IAEInterface;
|
|
|
|
use Psr\SimpleCache\InvalidArgumentException as SimpleIAEInterface;
|
2016-08-31 12:18:46 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2020-05-07 17:17:03 -04:00
|
|
|
class InvalidArgumentException extends CacheException implements IAEInterface, SimpleIAEInterface {
|
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
|
|
|
|
*/
|
2020-05-07 17:17:03 -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
|
|
|
}
|