You are here

public function KeyGenerationException::__construct in Lightning API 8

Same name and namespace in other branches
  1. 8.4 src/Exception/KeyGenerationException.php \Drupal\lightning_api\Exception\KeyGenerationException::__construct()
  2. 8.2 src/Exception/KeyGenerationException.php \Drupal\lightning_api\Exception\KeyGenerationException::__construct()
  3. 8.3 src/Exception/KeyGenerationException.php \Drupal\lightning_api\Exception\KeyGenerationException::__construct()

File

src/Exception/KeyGenerationException.php, line 7

Class

KeyGenerationException

Namespace

Drupal\lightning_api\Exception

Code

public function __construct($message = "", $code = 0, \Exception $previous = NULL) {
  if (empty($message)) {
    $message = openssl_error_string() ?: 'An internal error occurred';
  }
  parent::__construct($message, $code, $previous);
}