From: Roland Haeder Date: Sun, 10 Apr 2016 11:31:15 +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=c85a7370230d3ce5c2225e728a4418cc3df275a3;p=jjobs-lib.git The exception's message now contains the thrown exception's message, too. --- diff --git a/src/org/mxchange/jjobs/validator/addressbook/AddressbookIdValidator.java b/src/org/mxchange/jjobs/validator/addressbook/AddressbookIdValidator.java index a6b275f..f8aff5c 100644 --- a/src/org/mxchange/jjobs/validator/addressbook/AddressbookIdValidator.java +++ b/src/org/mxchange/jjobs/validator/addressbook/AddressbookIdValidator.java @@ -72,7 +72,7 @@ public class AddressbookIdValidator extends BaseLongValidator { this.addressbookBean = (JobsAddressbookSessionBeanRemote) context.lookup("java:global/jjobs-ejb/jjobs-adr!org.mxchange.jjobs.model.addressbook.JobsAddressbookSessionBeanRemote"); //NOI18N } catch (final NamingException ex) { // Continue to throw it - throw new RuntimeException("context.lookup() failed.", ex); //NOI18N + throw new RuntimeException(MessageFormat.format("context.lookup() failed: {0}", ex.getMessage()), ex); //NOI18N } } diff --git a/src/org/mxchange/jjobs/validator/user/UserIdValidator.java b/src/org/mxchange/jjobs/validator/user/UserIdValidator.java index f653b2a..77b218e 100644 --- a/src/org/mxchange/jjobs/validator/user/UserIdValidator.java +++ b/src/org/mxchange/jjobs/validator/user/UserIdValidator.java @@ -81,7 +81,7 @@ public class UserIdValidator extends BaseLongValidator implements Validator { this.userBean = (UserSessionBeanRemote) context.lookup("java:global/jjobs-ejb/user!org.mxchange.jusercore.model.user.UserSessionBeanRemote"); //NOI18N } catch (final NamingException ex) { // Continue to throw it - throw new RuntimeException("context.lookup() failed.", ex); //NOI18N + throw new RuntimeException(MessageFormat.format("context.lookup() failed: {0}", ex.getMessage()), ex); //NOI18N } }