Commit a060f05f authored by Daniel Baur's avatar Daniel Baur

Improved error handling

parent f3e572a5
......@@ -127,7 +127,7 @@ public final class LifecycleClient {
return (LcaException) t;
if (t instanceof RegistrationException)
return (RegistrationException) t;
return new LcaException("downstream exception occurred.", t);
return new LcaException("downstream exception occurred.", re);
}
......
......@@ -111,9 +111,8 @@ final class DownstreamPortUpdater implements Runnable {
doRun();
} catch(RegistrationException ex) {
LOGGER.error("cannot access downstream ports. registry not available.", ex);
} catch(RuntimeException re) {
LOGGER.error("runtime exception occurred.", re);
throw re;
} catch(Exception e) {
LOGGER.error("exception occurred.", e);
} catch(Error er) {
LOGGER.error("error occurred.", er);
throw er;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment