Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
InvalidArgumentException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php declare(strict_types=1); |
2 | /** |
3 | * Banker |
4 | * |
5 | * A Caching library implementing psr/cache (PSR 6) and psr/simple-cache (PSR 16) |
6 | * |
7 | * PHP version 8+ |
8 | * |
9 | * @package Banker |
10 | * @author Timothy J. Warren <tim@timshomepage.net> |
11 | * @copyright 2016 - 2023 Timothy J. Warren |
12 | * @license http://www.opensource.org/licenses/mit-license.html MIT License |
13 | * @version 4.1.0 |
14 | * @link https://git.timshomepage.net/timw4mail/banker |
15 | */ |
16 | namespace Aviat\Banker\Exception; |
17 | |
18 | use Psr\Cache\InvalidArgumentException as IAEInterface; |
19 | use Psr\SimpleCache\InvalidArgumentException as SimpleIAEInterface; |
20 | |
21 | /** |
22 | * Exception interface for invalid cache arguments. |
23 | * |
24 | * Any time an invalid argument is passed into a method it must throw an |
25 | * exception class which implements Psr\Cache\InvalidArgumentException. |
26 | */ |
27 | class InvalidArgumentException extends CacheException implements IAEInterface, SimpleIAEInterface { |
28 | |
29 | /** |
30 | * Constructor |
31 | * |
32 | * @param string $message |
33 | * @param int $code |
34 | * @param \Exception $previous |
35 | */ |
36 | public function __construct(string $message = 'Cache key must be a string.', int $code = 0, \Exception $previous = NULL) |
37 | { |
38 | parent::__construct($message, $code, $previous); |
39 | } |
40 | } |