URLNotBuiltException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: james
5
 * Date: 18/07/2018
6
 * Time: 12:44
7
 */
8
9
namespace CwsOps\LivePerson\Rest;
10
11
/**
12
 * Class UrlNotBuildException
13
 * URLNotBuilt will be thrown, when the URL Builder is not locked.
14
 * @package CwsOps\LivePerson\Rest
15
 */
16
class URLNotBuiltException extends \Exception
17
{
18
    public function __construct()
19
    {
20
        $message = "the URL has not been built, you need to call UrlBuilder::build() before getting the URL";
21
22
        parent::__construct($message, 500);
23
    }
24
}