Package com.amazonaws.services.s3.model
Class MultiObjectDeleteException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.amazonaws.AmazonClientException
-
- com.amazonaws.AmazonServiceException
-
- com.amazonaws.services.s3.model.AmazonS3Exception
-
- com.amazonaws.services.s3.model.MultiObjectDeleteException
-
- All Implemented Interfaces:
Serializable
public class MultiObjectDeleteException extends AmazonS3Exception implements Serializable
Exception for partial or total failure of the multi-object delete API, including the errors that occurred. For successfully deleted objects, refer togetDeletedObjects()
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiObjectDeleteException.DeleteError
An error that occurred when deleting an object.-
Nested classes/interfaces inherited from class com.amazonaws.AmazonServiceException
AmazonServiceException.ErrorType
-
-
Constructor Summary
Constructors Constructor Description MultiObjectDeleteException(Collection<MultiObjectDeleteException.DeleteError> errors, Collection<DeleteObjectsResult.DeletedObject> deletedObjects)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DeleteObjectsResult.DeletedObject>
getDeletedObjects()
Returns the list of successfully deleted objects from this request.String
getErrorCode()
Always returnsnull
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.-
Methods inherited from class com.amazonaws.services.s3.model.AmazonS3Exception
getAdditionalDetails, getCloudFrontId, getErrorResponseXml, getExtendedRequestId, setAdditionalDetails, setCloudFrontId, setExtendedRequestId, toString
-
Methods inherited from class com.amazonaws.AmazonServiceException
getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
-
Methods inherited from class com.amazonaws.AmazonClientException
isRetryable
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
MultiObjectDeleteException
public MultiObjectDeleteException(Collection<MultiObjectDeleteException.DeleteError> errors, Collection<DeleteObjectsResult.DeletedObject> deletedObjects)
-
-
Method Detail
-
getErrorCode
public String getErrorCode()
Always returnsnull
since this exception represents a "successful" response from the service with no top-level error code. UsegetErrors()
to retrieve a list of objects whose deletion failed, along with the error code and message for each individual failure.- Overrides:
getErrorCode
in classAmazonServiceException
- Returns:
- The AWS error code represented by this exception.
-
getDeletedObjects
public List<DeleteObjectsResult.DeletedObject> getDeletedObjects()
Returns the list of successfully deleted objects from this request. IfDeleteObjectsRequest.getQuiet()
is true, only error responses will be returned from s3.
-
getErrors
public List<MultiObjectDeleteException.DeleteError> getErrors()
Returns the list of errors from the attempted delete operation.
-
-