improved management of exceptions in the checkItemSynched

This commit is contained in:
Francesco Mangiacrapa 2021-05-17 18:10:57 +02:00
parent 7d9104991d
commit 5ac0e064dc
1 changed files with 5 additions and 5 deletions

View File

@ -113,14 +113,14 @@ public class WorkspaceThreddsSynchronize
logger.error("Error: ", e);
if (e instanceof WorkspaceInteractionException)
throw new Exception(
"Sorry, an error occurred during check syncronization due to WS interection for the itemId: "
+ itemId);
"Sorry, a WorkspaceInteraction error occurred during check syncronization for the itemId: "
+ itemId+". Try again or contact the support");
else if (e instanceof InternalException)
throw new Exception(
"Sorry, an Internal Exception occurred during check syncronization for the itemId: " + itemId);
"Sorry, an Internal error occurred during check syncronization for the itemId: " + itemId+". Try again or contact the support");
throw new Exception(
"Sorry, an error occurred server side during chck syncronization for the itemId: " + itemId);
"Sorry, an error occurred server side during chck syncronization for the itemId: " + itemId+". Try again or contact the support");
}
}
@ -370,7 +370,7 @@ public class WorkspaceThreddsSynchronize
SynchFolderConfiguration syncFolderConfig = engine.getConfig(itemId);
ThSynchFolderConfiguration toFolderConfig = ThreddsConverter.toThSynchFolderConfiguration
.apply(syncFolderConfig);
return new ThSyncFolderDescriptor(itemId, null, toFolderConfig, false, null, null);
}