REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 1.90 KB
Close
/home/godevadmin/www/admin/vendor/aws/Aws/S3/Exception/DeleteMultipleObjectsException.php
Text
Base64
<?php namespace Aws\S3\Exception; use Aws\HasMonitoringEventsTrait; use Aws\MonitoringEventsInterface; /** * Exception thrown when errors occur while deleting objects using a * {@see S3\BatchDelete} object. */ class DeleteMultipleObjectsException extends \Exception implements MonitoringEventsInterface { use HasMonitoringEventsTrait; private $deleted = []; private $errors = []; /** * @param array $deleted Array of successfully deleted keys * @param array $errors Array of errors that were encountered */ public function __construct(array $deleted, array $errors) { $this->deleted = array_values($deleted); $this->errors = array_values($errors); parent::__construct('Unable to delete certain keys when executing a' . ' DeleteMultipleObjects request: ' . self::createMessageFromErrors($errors)); } /** * Create a single error message from multiple errors. * * @param array $errors Errors encountered * * @return string */ public static function createMessageFromErrors(array $errors) { return "\n- " . implode("\n- ", array_map(function ($key) { return json_encode($key); }, $errors)); } /** * Get the errored objects * * @return array Returns an array of associative arrays, each containing * a 'Code', 'Message', and 'Key' key. */ public function getErrors() { return $this->errors; } /** * Get the successfully deleted objects * * @return array Returns an array of associative arrays, each containing * a 'Key' and optionally 'DeleteMarker' and * 'DeleterMarkerVersionId' */ public function getDeleted() { return $this->deleted; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
DeleteMultipleObjectsException.php
1.90 KB
lrwxrwxr-x
2024-06-18 20:10:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PermanentRedirectException.php
95 B
lrwxrwxr-x
2024-06-18 20:10:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
S3Exception.php
202 B
lrwxrwxr-x
2024-06-18 20:10:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
S3MultipartUploadException.php
2.68 KB
lrwxrwxr-x
2024-06-18 20:10:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).