public class MultiObjectDeleteException extends CosServiceException implements Serializable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
MultiObjectDeleteException.DeleteError
An error that occurred when deleting an object.
|
CosServiceException.ErrorType| 构造器和说明 |
|---|
MultiObjectDeleteException(Collection<MultiObjectDeleteException.DeleteError> errors,
Collection<DeleteObjectsResult.DeletedObject> deletedObjects) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, getErrorMessage, getErrorResponseXml, getErrorType, getMessage, getRawResponseContent, getRequestId, getStatusCode, getTraceId, setAdditionalDetails, setErrorCode, setErrorMessage, setErrorType, setRawResponseContent, setRequestId, setStatusCode, setTraceIdisRetryablepublic 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 在类中 CosServiceExceptionpublic List<DeleteObjectsResult.DeletedObject> getDeletedObjects()
DeleteObjectsRequest#getQuiet() is true, only error responses
will be returned from cos.public List<MultiObjectDeleteException.DeleteError> getErrors()
Copyright © 2020. All rights reserved.