improved management of exceptions in the checkItemSynched
This commit is contained in:
parent
7d9104991d
commit
5ac0e064dc
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue