class ContentHubImportException in Acquia Content Hub 8.2
An exception that occurred in some part of the Acquia Content Hub.
Hierarchy
- class \Drupal\acquia_contenthub_subscriber\Exception\ContentHubImportException extends \Drupal\acquia_contenthub_subscriber\Exception\Exception
Expanded class hierarchy of ContentHubImportException
2 files declare their use of ContentHubImportException
- ContentHubCommonActions.php in src/
ContentHubCommonActions.php - ContentHubImportQueueWorker.php in modules/
acquia_contenthub_subscriber/ src/ Plugin/ QueueWorker/ ContentHubImportQueueWorker.php
File
- modules/
acquia_contenthub_subscriber/ src/ Exception/ ContentHubImportException.php, line 8
Namespace
Drupal\acquia_contenthub_subscriber\ExceptionView source
class ContentHubImportException extends \Exception {
/**
* Imported UUIDs that have problems.
*
* @var array
*/
protected $uuids = [];
/**
* Sets the list of UUIDs that have problems.
*
* @param array $uuids
* An array of UUIDs.
*/
public function setUuids(array $uuids = []) {
$this->uuids = $uuids;
}
/**
* Returns the list of UUIDs that have issues.
*
* @return array
* An array of UUIDs.
*/
public function getUuids() {
return $this->uuids;
}
/**
* Checks if entities are missing from Content Hub.
*
* @return bool
* TRUE if entities are missing from Content Hub.
*/
public function isEntitiesMissing() {
return $this
->getCode() == 100;
}
/**
* Checks if entities have invalid UUID.
*
* @return bool
* TRUE if entities have invalid UUID.
*/
public function isInvalidUuid() {
return $this
->getCode() == 101;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContentHubImportException:: |
protected | property | Imported UUIDs that have problems. | |
ContentHubImportException:: |
public | function | Returns the list of UUIDs that have issues. | |
ContentHubImportException:: |
public | function | Checks if entities are missing from Content Hub. | |
ContentHubImportException:: |
public | function | Checks if entities have invalid UUID. | |
ContentHubImportException:: |
public | function | Sets the list of UUIDs that have problems. |