You are here

final class DeveloperUpdateFailedException in Apigee Edge 8

This exception is thrown when the developer profile update fails.

Hierarchy

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\Exception
View 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

Namesort descending Modifiers Type Description Overrides
DeveloperUpdateFailedException::$email private property Email address of the developer.
DeveloperUpdateFailedException::getEmail public function Email address of the developer.
DeveloperUpdateFailedException::__construct public function DeveloperUpdateFailedException constructor.