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
Exception for partial or total failure of the multi-object delete API,
including the errors that occurred. For successfully deleted objects, refer
to
getDeletedObjects().- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn error that occurred when deleting an object.Nested classes/interfaces inherited from class AmazonServiceException
AmazonServiceException.ErrorType -
Constructor Summary
ConstructorsConstructorDescriptionMultiObjectDeleteException(Collection<MultiObjectDeleteException.DeleteError> errors, Collection<DeleteObjectsResult.DeletedObject> deletedObjects) -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of successfully deleted objects from this request.Always returnsnullsince this exception represents a "successful" response from the service with no top-level error code.Returns the list of errors from the attempted delete operation.Methods inherited from class AmazonS3Exception
getAdditionalDetails, getCloudFrontId, getErrorResponseXml, getExtendedRequestId, setAdditionalDetails, setCloudFrontId, setExtendedRequestId, toStringMethods inherited from class AmazonServiceException
getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeMethods inherited from class AmazonClientException
isRetryableMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
MultiObjectDeleteException
public MultiObjectDeleteException(Collection<MultiObjectDeleteException.DeleteError> errors, Collection<DeleteObjectsResult.DeletedObject> deletedObjects)
-
-
Method Details
-
getErrorCode
Always returnsnullsince 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:
getErrorCodein classAmazonServiceException- Returns:
- The AWS error code represented by this exception.
-
getDeletedObjects
Returns the list of successfully deleted objects from this request. IfDeleteObjectsRequest.getQuiet()is true, only error responses will be returned from s3. -
getErrors
Returns the list of errors from the attempted delete operation.
-