banker/src/Exception/InvalidArgumentException.php

40 lines
1.1 KiB
PHP
Raw Normal View History

2016-10-19 09:57:06 -04:00
<?php declare(strict_types=1);
2016-08-31 12:18:46 -04:00
/**
2016-09-05 16:43:37 -04:00
* Banker
2016-08-31 12:18:46 -04:00
*
* A Caching library implementing psr/cache
*
2016-10-19 09:57:06 -04:00
* PHP version 7.0
2016-08-31 12:18:46 -04:00
*
2016-09-05 16:43:37 -04:00
* @package Banker
2016-08-31 12:18:46 -04:00
* @author Timothy J. Warren <tim@timshomepage.net>
* @copyright 2016 Timothy J. Warren
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @version 1.0.0
2016-09-05 16:43:37 -04:00
* @link https://git.timshomepage.net/timw4mail/banker
2016-08-31 12:18:46 -04:00
*/
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 {
2016-10-19 09:57:06 -04:00
2016-09-06 17:03:43 -04:00
/**
* Constructor
*
* @param string $message
* @param int $code
* @param \Exception $previous
*/
2016-10-19 09:57:06 -04:00
public function __construct(string $message = "Cache key must be a string.", int $code = 0, \Exception $previous = NULL)
2016-09-06 17:03:43 -04:00
{
parent::__construct($message, $code, $previous);
}
2016-08-31 12:18:46 -04:00
}