passing the exceptions
This commit is contained in:
parent
55d1edde30
commit
d9459d6479
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue