You are here

public function UnableToDeleteUsageException::__construct in Bynder 8.2

Same name and namespace in other branches
  1. 8.3 modules/bynder_usage/src/Exception/UnableToDeleteUsageException.php \Drupal\bynder_usage\Exception\UnableToDeleteUsageException::__construct()
  2. 4.0.x modules/bynder_usage/src/Exception/UnableToDeleteUsageException.php \Drupal\bynder_usage\Exception\UnableToDeleteUsageException::__construct()

Constructs UnableToDeleteUsageException.

Overrides BynderException::__construct

File

modules/bynder_usage/src/Exception/UnableToDeleteUsageException.php, line 15

Class

UnableToDeleteUsageException
Exception indicating that the usage can't be deleted for the Bynder asset.

Namespace

Drupal\bynder_usage\Exception

Code

public function __construct($original_message) {
  $log_message = 'Unable to delete usage: @message';
  $log_message_args = [
    '@message' => $original_message,
  ];
  $message = $this
    ->t('Unable to delete usage from Bynder asset. Please see the logs for more information.');
  parent::__construct($message, NULL, $log_message, $log_message_args);
}