Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
3 / 3
GeneratorNotExistException
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
 __construct
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
1<?php
2
3namespace Qmp\Laravel\FileGenerator\Services\FileGenerator\Exceptions;
4
5use Exception;
6use Throwable;
7
8class GeneratorNotExistException extends Exception
9{
10    /**
11     * @param $type
12     * @param int $code
13     * @param \Throwable|null $previous
14     */
15    public function __construct($type, $code = 0, Throwable $previous = null)
16    {
17        $message = "no generator exists for the type: $type";
18        parent::__construct($message, $code, $previous);
19    }
20}