You are here

public function AuthenticationKeyNotFoundException::__construct in Apigee Edge 8

AuthenticationKeyNotFoundException constructor.

Parameters

string $key_id: Id of the authentication key.

string $message: Exception message.

int $code: Error code.

\Throwable|null $previous: Previous exception.

File

src/Exception/AuthenticationKeyNotFoundException.php, line 47

Class

AuthenticationKeyNotFoundException
Thrown when authentication key not found with the id.

Namespace

Drupal\apigee_edge\Exception

Code

public function __construct(string $key_id, string $message = 'Authentication key not found with "@id" id.', int $code = 0, \Throwable $previous = NULL) {
  $this->keyId = $key_id;
  $message = strtr($message, [
    '@id' => $key_id,
  ]);
  parent::__construct($message, $code, $previous);
}