Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
ClientCreationException | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 |
1 | <?php |
2 | |
3 | /** |
4 | * @copyright BerlinOnline Stadtportal GmbH & Co. KG |
5 | **/ |
6 | |
7 | declare(strict_types=1); |
8 | |
9 | namespace BO\Zmsclient\Exception; |
10 | |
11 | use Throwable; |
12 | use Exception; |
13 | |
14 | class ClientCreationException extends Exception |
15 | { |
16 | protected $code = 500; |
17 | |
18 | protected $message = 'An Exception with the cURL Client creation occurred.'; |
19 | |
20 | public function __construct($message = "", $code = 0, Throwable $previous = null) |
21 | { |
22 | $code = $code === 0 ? $this->code : $code; |
23 | |
24 | parent::__construct($this->message . ' ' . $message, $code, $previous); |
25 | } |
26 | } |