Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | class CouldNotSendNotification extends Exception |
||
9 | { |
||
10 | const NO_RECIPIENT = 'Could not find recipient for notification'; |
||
11 | const CONNECTION_FAILED = 'Could not connect to sipgate: %s: %s'; |
||
12 | |||
13 | 1 | public static function noRecipient() |
|
14 | { |
||
15 | 1 | return new static(self::NO_RECIPIENT); |
|
16 | } |
||
17 | |||
18 | 1 | public static function connectionFailed(GuzzleException $exception) |
|
22 | ); |
||
23 | } |
||
25 |