passing the exceptions

This commit is contained in:
Francesco Mangiacrapa 2021-05-20 17:30:44 +02:00
parent 55d1edde30
commit d9459d6479
1 changed files with 2 additions and 12 deletions

View File

@ -179,18 +179,8 @@ public class WorkspaceThreddsSynchronize
return synStatus;
} catch (WorkspaceInteractionException | InternalException | ProcessNotFoundException e) {
logger.error("Error: ", e);
if (e instanceof WorkspaceInteractionException)
throw new Exception(
"Sorry, an error occurred during syncronization due to WS interection for the itemId: "
+ itemId);
else if (e instanceof InternalException)
throw new Exception(
"Sorry, an Internal Exception occurred during syncronization for the itemId: " + itemId);
throw new Exception(
"Sorry, an error occurred server side during syncronization for the itemId: " + itemId);
logger.error("DoSync Error: ", e);
throw e;
}
}