Commit a060f05f authored by Daniel Baur's avatar Daniel Baur

Improved error handling

parent f3e572a5
...@@ -127,7 +127,7 @@ public final class LifecycleClient { ...@@ -127,7 +127,7 @@ public final class LifecycleClient {
return (LcaException) t; return (LcaException) t;
if (t instanceof RegistrationException) if (t instanceof RegistrationException)
return (RegistrationException) t; 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 { ...@@ -111,9 +111,8 @@ final class DownstreamPortUpdater implements Runnable {
doRun(); doRun();
} catch(RegistrationException ex) { } catch(RegistrationException ex) {
LOGGER.error("cannot access downstream ports. registry not available.", ex); LOGGER.error("cannot access downstream ports. registry not available.", ex);
} catch(RuntimeException re) { } catch(Exception e) {
LOGGER.error("runtime exception occurred.", re); LOGGER.error("exception occurred.", e);
throw re;
} catch(Error er) { } catch(Error er) {
LOGGER.error("error occurred.", er); LOGGER.error("error occurred.", er);
throw 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