public class MultiObjectDeleteException extends AmazonS3Exception implements Serializable
getDeletedObjects()
.Modifier and Type | Class and Description |
---|---|
static class |
MultiObjectDeleteException.DeleteError
An error that occurred when deleting an object.
|
AmazonServiceException.ErrorType
Constructor and Description |
---|
MultiObjectDeleteException(Collection<MultiObjectDeleteException.DeleteError> errors,
Collection<DeleteObjectsResult.DeletedObject> deletedObjects) |
Modifier and Type | Method and Description |
---|---|
List<DeleteObjectsResult.DeletedObject> |
getDeletedObjects()
Returns the list of successfully deleted objects from this request.
|
String |
getErrorCode()
Always returns
null since this exception represents a
"successful" response from the service with no top-level error code. |
List<MultiObjectDeleteException.DeleteError> |
getErrors()
Returns the list of errors from the attempted delete operation.
|
getAdditionalDetails, getCloudFrontId, getErrorResponseXml, getExtendedRequestId, getMessage, setAdditionalDetails, setCloudFrontId, setExtendedRequestId, toString
getErrorMessage, getErrorType, getHttpHeaders, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public MultiObjectDeleteException(Collection<MultiObjectDeleteException.DeleteError> errors, Collection<DeleteObjectsResult.DeletedObject> deletedObjects)
public String getErrorCode()
null
since this exception represents a
"successful" response from the service with no top-level error code. Use
getErrors()
to retrieve a list of objects whose deletion failed,
along with the error code and message for each individual failure.getErrorCode
in class AmazonServiceException
public List<DeleteObjectsResult.DeletedObject> getDeletedObjects()
DeleteObjectsRequest.getQuiet()
is true, only error responses
will be returned from s3.public List<MultiObjectDeleteException.DeleteError> getErrors()
Copyright © 2017. All rights reserved.