class UserDoesNotExistWithEmail in Apigee Edge 8
Thrown when user does not exist with an email.
Hierarchy
- class \Drupal\apigee_edge\Exception\RuntimeException implements ApigeeEdgeExceptionInterface- class \Drupal\apigee_edge\Exception\RuntimeException implements ApigeeEdgeExceptionInterface- class \Drupal\apigee_edge\Exception\UserDoesNotExistWithEmail implements ApigeeEdgeExceptionInterface
 
 
- class \Drupal\apigee_edge\Exception\RuntimeException implements ApigeeEdgeExceptionInterface
Expanded class hierarchy of UserDoesNotExistWithEmail
1 file declares its use of UserDoesNotExistWithEmail
File
- src/Exception/ UserDoesNotExistWithEmail.php, line 26 
Namespace
Drupal\apigee_edge\ExceptionView source
class UserDoesNotExistWithEmail extends \RuntimeException implements ApigeeEdgeExceptionInterface {
  /**
   * Email address of the developer that is supposed to exist.
   *
   * @var string
   */
  protected $email;
  /**
   * UserDoesNotExistWithEmail 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 = 'User with @email email address not found.', int $code = 0, \Throwable $previous = NULL) {
    $this->email = $email;
    $message = strtr($message, [
      '@email' => $email,
    ]);
    parent::__construct($message, $code, $previous);
  }
  /**
   * Email address of the user.
   *
   * @return string
   *   Email address.
   */
  public function getEmail() : string {
    return $this->email;
  }
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| UserDoesNotExistWithEmail:: | protected | property | Email address of the developer that is supposed to exist. | |
| UserDoesNotExistWithEmail:: | public | function | Email address of the user. | |
| UserDoesNotExistWithEmail:: | public | function | UserDoesNotExistWithEmail constructor. | 
