]> git.mxchange.org Git - jjobs-lib.git/commitdiff
The exception's message now contains the thrown exception's message, too.
authorRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 11:31:15 +0000 (13:31 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 11:31:15 +0000 (13:31 +0200)
src/org/mxchange/jjobs/validator/addressbook/AddressbookIdValidator.java
src/org/mxchange/jjobs/validator/user/UserIdValidator.java

index a6b275fd6e0d43bb2b8208df320eb4e6323ea6ae..f8aff5c0a3ce384aa3ae85b10739c42d8bbae254 100644 (file)
@@ -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
                }
        }
 
index f653b2aa9b463cd8c0fe9589f23e5eed7004c0f2..77b218e50a4c65381a019b6e22dbcedc130da1a1 100644 (file)
@@ -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
                }
        }