1 | <?php |
||
8 | class CouldNotDownloadCertificate extends Exception |
||
9 | { |
||
10 | use TrackDomainTrait; |
||
11 | |||
12 | 1 | public static function hostDoesNotExist(string $hostName): self |
|
13 | { |
||
14 | 1 | $exception = new static("The host named `{$hostName}` does not exist."); |
|
15 | 1 | $exception->setErrorDomain($hostName); |
|
16 | |||
17 | 1 | return $exception; |
|
18 | } |
||
19 | |||
20 | public static function noCertificateInstalled(string $hostName): self |
||
27 | |||
28 | 4 | public static function failedHandshake(Url $url): self |
|
38 | |||
39 | 1 | public static function connectionTimeout(string $hostName): self |
|
46 | |||
47 | public static function unknownError(string $hostName, string $errorMessage): self |
||
54 | } |
||
55 |