You are here

public function UserDoesNotExistWithEmail::__construct in Apigee Edge 8

UserDoesNotExistWithEmail constructor.

Parameters

string $email: Developer email.

string $message: Exception message.

int $code: Error code.

\Throwable|null $previous: Previous exception.

File

src/Exception/UserDoesNotExistWithEmail.php, line 47

Class

UserDoesNotExistWithEmail
Thrown when user does not exist with an email.

Namespace

Drupal\apigee_edge\Exception

Code

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);
}