Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
7 / 7 |
| CartesianProductException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
7 / 7 |
| __construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
7 / 7 |
|||
| <?php declare(strict_types = 1); | |
| /** | |
| * @package: pvc | |
| * @author: Doug Wilbourne (dougwilbourne@gmail.com) | |
| * @version: 1.0 | |
| */ | |
| namespace pvc\array_utils\CartesianProduct; | |
| use pvc\err\throwable\ErrorExceptionConstants as ec; | |
| use pvc\err\throwable\exception\stock_rebrands\InvalidArgumentException; | |
| use pvc\msg\ErrorExceptionMsg; | |
| use Throwable; | |
| /** | |
| * Class CartesianProductException | |
| */ | |
| class CartesianProductException extends InvalidArgumentException | |
| { | |
| public function __construct(Throwable $previous = null) | |
| { | |
| $msgText = 'Each element in the array of the constructor must be itself an array '; | |
| $msgText .= 'or must implement Iterator interface. Each set must have more than zero elements.'; | |
| $vars = []; | |
| $msg = new ErrorExceptionMsg($vars, $msgText); | |
| $code = ec::CARTESIAN_PRODUCT_EXCEPTION; | |
| parent::__construct($msg, $code, $previous); | |
| } | |
| } |