class KeyGenerationException in Lightning API 8
Same name and namespace in other branches
- 8.4 src/Exception/KeyGenerationException.php \Drupal\lightning_api\Exception\KeyGenerationException
- 8.2 src/Exception/KeyGenerationException.php \Drupal\lightning_api\Exception\KeyGenerationException
- 8.3 src/Exception/KeyGenerationException.php \Drupal\lightning_api\Exception\KeyGenerationException
Hierarchy
- class \Drupal\lightning_api\Exception\KeyGenerationException extends \Drupal\lightning_api\Exception\RuntimeException
Expanded class hierarchy of KeyGenerationException
2 files declare their use of KeyGenerationException
- OAuthKey.php in src/
OAuthKey.php - OAuthKeyForm.php in src/
Form/ OAuthKeyForm.php
File
- src/
Exception/ KeyGenerationException.php, line 5
Namespace
Drupal\lightning_api\ExceptionView source
class KeyGenerationException extends \RuntimeException {
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KeyGenerationException:: |
public | function |