* @copyright 2016 - 2021 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License * @version 3.2.0 * @link https://git.timshomepage.net/timw4mail/banker */ namespace Aviat\Banker\Exception; use Psr\Cache\InvalidArgumentException as IAEInterface; use Psr\SimpleCache\InvalidArgumentException as SimpleIAEInterface; /** * 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 IAEInterface, SimpleIAEInterface { /** * 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); } }