Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
ClientCreationException
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
6
1<?php
2
3/**
4 * @copyright BerlinOnline Stadtportal GmbH & Co. KG
5 **/
6
7declare(strict_types=1);
8
9namespace BO\Zmsclient\Exception;
10
11use Throwable;
12use Exception;
13
14class 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}