You are here

class Oauth2ClientPluginMissingKeyException in OAuth2 Client 8.3

Same name and namespace in other branches
  1. 8.2 src/Exception/Oauth2ClientPluginMissingKeyException.php \Drupal\oauth2_client\Exception\Oauth2ClientPluginMissingKeyException

Exception thrown when the Oauth2 Client plugin is missing a required key.

Hierarchy

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\Exception
View 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

Namesort descending Modifiers Type Description Overrides
Oauth2ClientPluginMissingKeyException::__construct public function Constructs an Oauth2ClientPluginMissingKeyException object.