public ServiceException getServiceException() { String fullMessage = message + ": PartNumber=" + partNumber + ", MinSizeAllowed=" + minSizeAllowed + ", ProposedSize=" + proposedSize + ", ETag=" + etag; ServiceException e = new ServiceException(fullMessage); e.setErrorCode(code); e.setErrorMessage(message); e.setErrorHostId(hostId); e.setErrorRequestId(requestId); return e; }
public ServiceException getServiceException() { String fullMessage = message + ": PartNumber=" + partNumber + ", MinSizeAllowed=" + minSizeAllowed + ", ProposedSize=" + proposedSize + ", ETag=" + etag; ServiceException e = new ServiceException(fullMessage); e.setErrorCode(code); e.setErrorMessage(message); e.setErrorHostId(hostId); e.setErrorRequestId(requestId); return e; }
failure.setErrorCode(error.getErrorCode()); failure.setErrorMessage(error.getMessage()); throw new S3ExceptionMappingService().map("Cannot delete {0}", failure, failure.setErrorCode(error.getErrorCode()); failure.setErrorMessage(error.getMessage()); throw new S3ExceptionMappingService().map("Cannot delete {0}", failure,