* @copyright 2016 - 2018 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License * @version 2.0.0 * @link https://git.timshomepage.net/timw4mail/banker */ 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 { /** * Constructor * * @param string $message * @param int $code * @param \Exception $previous */ public function __construct(string $message = "Cache key must be a string.", int $code = 0, \Exception $previous = NULL) { parent::__construct($message, $code, $previous); } }