KeyGenerationException.php in Lightning API 8.3
Same filename and directory in other branches
Namespace
Drupal\lightning_api\ExceptionFile
src/Exception/KeyGenerationException.phpView source
<?php
namespace Drupal\lightning_api\Exception;
/**
* Exception thrown if an error occurs while generating an OAuth key pair.
*/
class KeyGenerationException extends \RuntimeException {
/**
* KeyGenerationException constructor.
*
* @param string $message
* (optional) The exception message.
* @param int $code
* (optional) The exception error code.
* @param \Exception $previous
* (optional) The previous exception, if any.
*/
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);
}
}
Classes
Name![]() |
Description |
---|---|
KeyGenerationException | Exception thrown if an error occurs while generating an OAuth key pair. |