Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
50.00% |
1 / 2 |
CRAP | |
50.00% |
1 / 2 |
| DatasetException | |
0.00% |
0 / 1 |
|
50.00% |
1 / 2 |
2.50 | |
50.00% |
1 / 2 |
| missingFile | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| cantOpenFile | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| declare (strict_types = 1); | |
| namespace Phpml\Exception; | |
| class DatasetException extends \Exception | |
| { | |
| /** | |
| * @return DatasetException | |
| */ | |
| public static function missingFile($filepath) | |
| { | |
| return new self(sprintf('Dataset file %s missing.', $filepath)); | |
| } | |
| public static function cantOpenFile($filepath) | |
| { | |
| return new self(sprintf('Dataset file %s can\'t be open.', $filepath)); | |
| } | |
| } |