class UnableToDeleteUsageException in Bynder 8
Exception indicating that the usage can't be deleted for the Bynder asset.
Hierarchy
- class \Drupal\bynder\Exception\BynderException extends \Drupal\bynder\Exception\Exception uses StringTranslationTrait
- class \Drupal\bynder\Exception\UnableToDeleteUsageException
Expanded class hierarchy of UnableToDeleteUsageException
1 file declares its use of UnableToDeleteUsageException
- UsageEventSubscriber.php in src/
EventSubscriber/ UsageEventSubscriber.php
File
- src/
Exception/ UnableToDeleteUsageException.php, line 8
Namespace
Drupal\bynder\ExceptionView source
class UnableToDeleteUsageException extends BynderException {
/**
* Constructs UnableToDeleteUsageException.
*/
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BynderException:: |
protected | property | User-facing for admin users. | |
BynderException:: |
protected | property | Admin permission related to this exception. | 2 |
BynderException:: |
protected | property | Message to be logged in the Drupal's log. | |
BynderException:: |
protected | property | Arguments for the log message. | |
BynderException:: |
protected | property | Message level to be used when displaying the message to the user. | |
BynderException:: |
public | function | Displays message to the user. | |
BynderException:: |
public | function | Logs exception into Drupal's log. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
UnableToDeleteUsageException:: |
public | function |
Constructs UnableToDeleteUsageException. Overrides BynderException:: |