final class DeveloperUpdateFailedException in Apigee Edge 8
This exception is thrown when the developer profile update fails.
Hierarchy
- class \Drupal\apigee_edge\Exception\DeveloperUpdateFailedException extends \Apigee\Edge\Exception\ApiException implements ApigeeEdgeExceptionInterface
Expanded class hierarchy of DeveloperUpdateFailedException
1 file declares its use of DeveloperUpdateFailedException
- apigee_edge.module in ./
apigee_edge.module - Copyright 2018 Google Inc.
File
- src/
Exception/ DeveloperUpdateFailedException.php, line 27
Namespace
Drupal\apigee_edge\ExceptionView source
final class DeveloperUpdateFailedException extends ApiException implements ApigeeEdgeExceptionInterface {
/**
* Email address of the developer.
*
* @var string
*/
private $email;
/**
* DeveloperUpdateFailedException 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 @email profile update failed.', 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 |
---|---|---|---|---|
DeveloperUpdateFailedException:: |
private | property | Email address of the developer. | |
DeveloperUpdateFailedException:: |
public | function | Email address of the developer. | |
DeveloperUpdateFailedException:: |
public | function | DeveloperUpdateFailedException constructor. |