class UploadFailedException in Bynder 8.2
Same name and namespace in other branches
- 8.3 src/Exception/UploadFailedException.php \Drupal\bynder\Exception\UploadFailedException
- 8 src/Exception/UploadFailedException.php \Drupal\bynder\Exception\UploadFailedException
- 4.0.x src/Exception/UploadFailedException.php \Drupal\bynder\Exception\UploadFailedException
Exception indicating that the upload to Bynder failed.
Hierarchy
- class \Drupal\bynder\Exception\BynderException extends \Drupal\bynder\Exception\Exception uses MessengerTrait, StringTranslationTrait
- class \Drupal\bynder\Exception\UploadFailedException
Expanded class hierarchy of UploadFailedException
1 file declares its use of UploadFailedException
- BynderUpload.php in src/
Plugin/ EntityBrowser/ Widget/ BynderUpload.php
File
- src/
Exception/ UploadFailedException.php, line 8
Namespace
Drupal\bynder\ExceptionView source
class UploadFailedException extends BynderException {
/**
* Constructs UploadFailedException.
*
* @param string $original_message
* Message that was originally thrown from the upload system.
*/
public function __construct($original_message) {
$log_message = 'Unable to upload files to Bynder: @message';
$log_message_args = [
'@message' => $original_message,
];
$admin_message = $this
->t($log_message, $log_message_args);
$message = $this
->t('Upload to Bynder failed. Please contact the site administrator.');
parent::__construct($message, $admin_message, $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:: |
public | function | Displays message to the user. | |
BynderException:: |
public | function | Logs exception into Drupal's log. | |
MessengerTrait:: |
protected | property | The messenger. | 29 |
MessengerTrait:: |
public | function | Gets the messenger. | 29 |
MessengerTrait:: |
public | function | Sets the messenger. | |
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. | |
UploadFailedException:: |
public | function |
Constructs UploadFailedException. Overrides BynderException:: |