Capturing exception raised form storage hub clients
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/storagehub-application-persistence@178914 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
836049d2d0
commit
c8e66b48b5
|
@ -24,6 +24,7 @@ import org.gcube.common.storagehub.client.dsl.ListResolverTyped;
|
|||
import org.gcube.common.storagehub.client.dsl.OpenResolver;
|
||||
import org.gcube.common.storagehub.client.dsl.StorageHubClient;
|
||||
import org.gcube.common.storagehub.model.Metadata;
|
||||
import org.gcube.common.storagehub.model.exceptions.StorageHubException;
|
||||
import org.gcube.common.storagehub.model.items.Item;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -55,7 +56,7 @@ public class StorageHubManagement {
|
|||
return createdFile;
|
||||
}
|
||||
|
||||
protected void recursiveList(FolderContainer folder, int level) {
|
||||
protected void recursiveList(FolderContainer folder, int level) throws StorageHubException {
|
||||
ListResolverTyped listResolverTyped = folder.list();
|
||||
List<ItemContainer<? extends Item>> containers = listResolverTyped.includeHidden().getContainers();
|
||||
for(ItemContainer<? extends Item> itemContainer : containers) {
|
||||
|
|
Loading…
Reference in New Issue