public function EntityNotFoundException::__construct in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 src/EntityNotFoundException.php \Drupal\salesforce\EntityNotFoundException::__construct()
- 8.3 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\salesforceCode
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;
}