banker/src/Exception/InvalidArgumentException.php
Timothy J Warren f31fe826b0
Some checks failed
Gitea - aviat/banker/pipeline/head There was a failure building this commit
Implement PSR-16
2020-05-07 17:17:03 -04:00

40 lines
1.2 KiB
PHP

<?php declare(strict_types=1);
/**
* Banker
*
* A Caching library implementing psr/cache (PSR 6)
*
* PHP version 7.2
*
* @package Banker
* @author Timothy J. Warren <tim@timshomepage.net>
* @copyright 2016 - 2019 Timothy J. Warren
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @version 3.0.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);
}
}