You are here

public function DeveloperToUserConversionException::__construct in Apigee Edge 8

DeveloperToUserConversionException constructor.

Parameters

\Drupal\apigee_edge\Entity\DeveloperInterface $developer: Developer object.

string $message: The Exception message.

int $code: The error code.

\Throwable|null $previous: The previous throwable used for the exception chaining.

2 calls to DeveloperToUserConversionException::__construct()
DeveloperToUserConversationInvalidValueException::__construct in src/Exception/DeveloperToUserConversationInvalidValueException.php
DeveloperToUserConversationInvalidValueException constructor.
DeveloperToUserConversionAttributeDoesNotExistException::__construct in src/Exception/DeveloperToUserConversionAttributeDoesNotExistException.php
DeveloperToUserConversionAttributeDoesNotExistException constructor.
2 methods override DeveloperToUserConversionException::__construct()
DeveloperToUserConversationInvalidValueException::__construct in src/Exception/DeveloperToUserConversationInvalidValueException.php
DeveloperToUserConversationInvalidValueException constructor.
DeveloperToUserConversionAttributeDoesNotExistException::__construct in src/Exception/DeveloperToUserConversionAttributeDoesNotExistException.php
DeveloperToUserConversionAttributeDoesNotExistException constructor.

File

src/Exception/DeveloperToUserConversionException.php, line 49

Class

DeveloperToUserConversionException
Base exception class for developer to user conversion errors.

Namespace

Drupal\apigee_edge\Exception

Code

public function __construct(DeveloperInterface $developer, string $message = 'Unable to convert "@developer" developer to user.', int $code = 0, ?\Throwable $previous = NULL) {
  $this->developer = $developer;
  $message = strtr($message, [
    '@developer' => $developer
      ->getEmail(),
  ]);
  parent::__construct($message, $code, $previous);
}