2016-08-31 12:18:46 -04:00
|
|
|
<?php
|
|
|
|
/**
|
2016-09-05 16:43:37 -04:00
|
|
|
* Banker
|
2016-08-31 12:18:46 -04:00
|
|
|
*
|
|
|
|
* A Caching library implementing psr/cache
|
|
|
|
*
|
|
|
|
* PHP version 5.6
|
|
|
|
*
|
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>
|
|
|
|
* @copyright 2016 Timothy J. Warren
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
|
|
* @version 1.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-09-06 17:03:43 -04:00
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*
|
|
|
|
* @param string $message
|
|
|
|
* @param int $code
|
|
|
|
* @param \Exception $previous
|
|
|
|
*/
|
|
|
|
public function __construct($message = "Cache key must be a string.", $code = 0, \Exception $previous = NULL)
|
|
|
|
{
|
|
|
|
parent::__construct($message, $code, $previous);
|
|
|
|
}
|
2016-08-31 12:18:46 -04:00
|
|
|
}
|