From: Roland Haeder Date: Sun, 10 Apr 2016 11:31:33 +0000 (+0200) Subject: The exception's message now contains the thrown exception's message, too. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3dced94b54837b7e42f77078d8941f9c885d3b06;p=jjobs-ejb.git The exception's message now contains the thrown exception's message, too. --- diff --git a/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java b/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java index e11b645..57380fe 100644 --- a/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java +++ b/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java @@ -62,7 +62,7 @@ public class JobsEmailDeliveryMessageBean implements MessageListener { this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N } catch (final NamingException ex) { // Continue to throw - throw new RuntimeException("context.lookup() failed.", ex); //NOI18N + throw new RuntimeException(MessageFormat.format("context.lookup() failed: {0}", ex.getMessage()), ex); //NOI18N } }