diff --git a/src/Exceptions/CouldNotDownloadCertificate/UnknownError.php b/src/Exceptions/CouldNotDownloadCertificate/UnknownError.php index 829a4ee..aa62de0 100644 --- a/src/Exceptions/CouldNotDownloadCertificate/UnknownError.php +++ b/src/Exceptions/CouldNotDownloadCertificate/UnknownError.php @@ -6,8 +6,16 @@ class UnknownError extends CouldNotDownloadCertificate { + protected string $errorMessage; + public function __construct(string $hostName, string $errorMessage) { parent::__construct("Could not download certificate for host `{$hostName}` because {$errorMessage}"); + + $this->errorMessage = $errorMessage; + } + + public function getOriginalMessage(): string { + return $this->errorMessage; } }