for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
namespace SlevomatEET\Cryptography;
class PrivateKeyFileException extends \Exception
{
/**
* @var string
*/
private $privateKeyFile;
public function __construct(string $privateKeyFile, \Throwable $previous = null)
parent::__construct(sprintf(
'Private key could not be loaded from file \'%s\'. Please make sure that the file contains valid private key in PEM format.',
$privateKeyFile
), 0, $previous);
$this->privateKeyFile = $privateKeyFile;
}
public function getPrivateKeyFile(): string
return $this->privateKeyFile;