Source of file InvalidArgumentException.php
Size: 1,210 Bytes - Last Modified: 2020-05-08T12:23:11-04:00
../src/Exception/InvalidArgumentException.php
12345678910111213141516171819202122232425262728293031323334353637383940 | <?php declare(strict_types=1); /** * Banker * * A Caching library implementing psr/cache (PSR 6) and psr/simple-cache (PSR 16) * * PHP version 7.4 * * @package Banker * @author Timothy J. Warren <tim@timshomepage.net> * @copyright 2016 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License * @version 3.1.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); } } |