You are here

public function EntityNotFoundException::__construct in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 src/EntityNotFoundException.php \Drupal\salesforce\EntityNotFoundException::__construct()
  2. 5.0.x src/EntityNotFoundException.php \Drupal\salesforce\EntityNotFoundException::__construct()

EntityNotFoundException constructor.

Parameters

mixed $entityProperties: Entity properties.

string $entityTypeId: Entity type id.

\Throwable|null $previous: Previous exception.

File

src/EntityNotFoundException.php, line 42

Class

EntityNotFoundException
EntityNotFoundException extends Drupal\salesforce\Exception.

Namespace

Drupal\salesforce

Code

public function __construct($entityProperties, $entityTypeId, Throwable $previous = NULL) {
  parent::__construct($this
    ->t('Entity not found. type: %type properties: %props', [
    '%type' => $entityTypeId,
    '%props' => var_export($entityProperties, TRUE),
  ]), 0, $previous);
  $this->entityProperties = $entityProperties;
  $this->entityTypeId = $entityTypeId;
}