Class DeleteMultipleObjectsException
- Exception
-
Aws\S3\Exception\DeleteMultipleObjectsException implements Aws\MonitoringEventsInterface uses Aws\HasMonitoringEventsTrait
- Namespace: Aws\S3\Exception
- Located at S3/Exception/DeleteMultipleObjectsException.php
Exception thrown when errors occur while deleting objects using a S3\BatchDelete object.
Methods Summary
- __construct ( array $deleted, array $errors )
-
static
createMessageFromErrors ( array $errors )
Create a single error message from multiple errors.
-
getErrors ( )
Get the errored objects
-
getDeleted ( )
Get the successfully deleted objects
Methods inherited from Exception
__toString()
,
__wakeup()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Methods inherited from Aws\MonitoringEventsInterface
Methods used from Aws\HasMonitoringEventsTrait
Methods Details
__construct ( array $deleted, array $errors )
Parameters
array | $deleted | Array of successfully deleted keys |
array | $errors | Array of errors that were encountered |
Overrides
Exception::__construct
static string createMessageFromErrors ( array $errors )
Create a single error message from multiple errors.
Parameters
array | $errors | Errors encountered |
Returns
string |
array getErrors ( )
Get the errored objects
Returns
array Returns an array of associative arrays, each containing a 'Code', 'Message', and 'Key' key. |
array getDeleted ( )
Get the successfully deleted objects
Returns
array Returns an array of associative arrays, each containing a 'Key' and optionally 'DeleteMarker' and 'DeleterMarkerVersionId' |