public function UploadFailedException::__construct in Bynder 8.2
Same name and namespace in other branches
- 8.3 src/Exception/UploadFailedException.php \Drupal\bynder\Exception\UploadFailedException::__construct()
- 8 src/Exception/UploadFailedException.php \Drupal\bynder\Exception\UploadFailedException::__construct()
- 4.0.x src/Exception/UploadFailedException.php \Drupal\bynder\Exception\UploadFailedException::__construct()
Constructs UploadFailedException.
Parameters
string $original_message: Message that was originally thrown from the upload system.
Overrides BynderException::__construct
File
- src/
Exception/ UploadFailedException.php, line 16
Class
- UploadFailedException
- Exception indicating that the upload to Bynder failed.
Namespace
Drupal\bynder\ExceptionCode
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);
}