class Oauth2ClientPluginMissingKeyException in OAuth2 Client 8.3
Same name and namespace in other branches
- 8.2 src/Exception/Oauth2ClientPluginMissingKeyException.php \Drupal\oauth2_client\Exception\Oauth2ClientPluginMissingKeyException
Exception thrown when the Oauth2 Client plugin is missing a required key.
Hierarchy
- class \Drupal\oauth2_client\Exception\Oauth2ClientPluginMissingKeyException extends \Drupal\oauth2_client\Exception\Exception
Expanded class hierarchy of Oauth2ClientPluginMissingKeyException
1 file declares its use of Oauth2ClientPluginMissingKeyException
- Oauth2ClientPluginBase.php in src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php
File
- src/
Exception/ Oauth2ClientPluginMissingKeyException.php, line 8
Namespace
Drupal\oauth2_client\ExceptionView source
class Oauth2ClientPluginMissingKeyException extends \Exception {
/**
* Constructs an Oauth2ClientPluginMissingKeyException object.
*
* @param string $key
* The OAuth2 Client plugin key that is missing.
* @param string $message
* The Exception message to throw.
* @param int $code
* The Exception code.
* @param \Throwable $previous
* The previous exception used for the exception chaining.
*/
public function __construct($key, $message = "", $code = 0, \Throwable $previous = NULL) {
if ($message == '') {
$message = 'The Oauth2 Client plugin is missing required key: ' . $key;
}
parent::__construct($message, $code, $previous);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Oauth2ClientPluginMissingKeyException:: |
public | function | Constructs an Oauth2ClientPluginMissingKeyException object. |