class DeveloperDoesNotExistException in Apigee Edge 8
This exception is thrown when the developer for a user cannot be loaded.
Hierarchy
- class \Drupal\apigee_edge\Exception\DeveloperDoesNotExistException extends \Apigee\Edge\Exception\ApiException implements ApigeeEdgeExceptionInterface
Expanded class hierarchy of DeveloperDoesNotExistException
7 files declare their use of DeveloperDoesNotExistException
- apigee_edge_teams.module in modules/
apigee_edge_teams/ apigee_edge_teams.module - Copyright 2018 Google Inc.
- DeveloperAppCacheFactory.php in src/
Entity/ Controller/ Cache/ DeveloperAppCacheFactory.php - DeveloperAppListBuilderForDeveloper.php in src/
Entity/ ListBuilder/ DeveloperAppListBuilderForDeveloper.php - DeveloperAppNameCacheFactory.php in src/
Entity/ Controller/ Cache/ DeveloperAppNameCacheFactory.php - DeveloperAppNameConverter.php in src/
ParamConverter/ DeveloperAppNameConverter.php
File
- src/
Exception/ DeveloperDoesNotExistException.php, line 27
Namespace
Drupal\apigee_edge\ExceptionView source
class DeveloperDoesNotExistException extends ApiException implements ApigeeEdgeExceptionInterface {
/**
* Email address of the developer that is supposed to exist.
*
* @var string
*/
protected $email;
/**
* DeveloperDoesNotExistException constructor.
*
* @param string $email
* Developer email.
* @param string $message
* Exception message.
* @param int $code
* Error code.
* @param \Throwable|null $previous
* Previous exception.
*/
public function __construct(string $email, string $message = 'Developer with @email email address not found. Running the developer sync could fix this.', int $code = 0, \Throwable $previous = NULL) {
$this->email = $email;
$message = strtr($message, [
'@email' => $email,
]);
parent::__construct($message, $code, $previous);
}
/**
* Email address of the developer.
*
* @return string
* Email address.
*/
public function getEmail() : string {
return $this->email;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeveloperDoesNotExistException:: |
protected | property | Email address of the developer that is supposed to exist. | |
DeveloperDoesNotExistException:: |
public | function | Email address of the developer. | |
DeveloperDoesNotExistException:: |
public | function | DeveloperDoesNotExistException constructor. |