fix on exception
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/storagehub-client-wrapper@172036 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
438320ec21
commit
9112424306
|
@ -703,13 +703,14 @@ public final class WorkspaceStorageHubClientService implements Workspace{
|
||||||
toReturnItems.add(HLMapper.toWorkspaceItem(movedItem));
|
toReturnItems.add(HLMapper.toWorkspaceItem(movedItem));
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
logger.error("Error on moving the item with id: "+itemId+ " in the folder id: "+destFolderContainer.get().getId(), e);
|
logger.error("Error on moving the item with id: "+itemId+ " in the folder id: "+destFolderContainer.get().getId(), e);
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return toReturnItems;
|
return toReturnItems;
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("Error on moving item/items in the folder with id: "+folderDestinationId, e);
|
logger.error("Error on moving item in the folder with id: "+folderDestinationId + e.getMessage());
|
||||||
String error = e.getMessage()!=null?e.getMessage():"";
|
String error = e.getMessage()!=null?e.getMessage():"";
|
||||||
throw new Exception("Error on moving item/s. "+error);
|
throw new Exception("Error on moving item/s. "+error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue