]> git.mxchange.org Git - jjobs-war.git/commitdiff
The exception's message now contains the thrown exception's message, too.
authorRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 11:30:33 +0000 (13:30 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 11:30:33 +0000 (13:30 +0200)
src/java/org/mxchange/jjobs/converter/country/JobsCountryConverter.java
src/java/org/mxchange/jjobs/converter/smsprovider/JobsSmsProviderConverter.java
src/java/org/mxchange/jjobs/converter/user/JobsUserConverter.java
src/java/org/mxchange/jjobs/validators/password/JobsUserPasswordValidator.java

index 3c89ed6b45bd429693ee5fc1669eb364759fcb93..03c59780c304f9b865a65d7fcb93d65cb6d95c67 100644 (file)
@@ -66,7 +66,7 @@ public class JobsCountryConverter implements Converter {
                        this.countryBean = (JobsCountrySingletonBeanRemote) context.lookup("java:global/jjobs-ejb/country!org.mxchange.jcountry.data.JobsCountrySingletonBeanRemote"); //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 543b7f1d9436be143058d6d3691aa23cb1592613..213600e5f8b10b992f641aac858b517eb6cfcceb 100644 (file)
@@ -66,7 +66,7 @@ public class JobsSmsProviderConverter implements Converter {
                        this.providerController = (SmsProviderSingletonBeanRemote) context.lookup("java:global/jjobs-ejb/smsprovider!org.mxchange.jphone.phonenumbers.smsprovider.JobsSmsProviderSingletonBeanRemote"); //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 b0a66271fcf80182edfcce4f92f724be955d5141..0ca588bbbf0e3cb93aa4b2e7399325935e319b49 100644 (file)
@@ -68,7 +68,7 @@ public class JobsUserConverter implements Converter {
                        this.userController = (JobsUserWebSessionController) 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
                }
        }
 
index c5d172c1ed768cbf2ae9107fe52012f7e2ecca61..f018723940a220a0d937b0d7fad6198a7b3cb3d8 100644 (file)
@@ -71,7 +71,7 @@ public class JobsUserPasswordValidator extends BaseStringValidator implements Va
                        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 it
-                       throw new RuntimeException("context.lookup() failed.", ex); //NOI18N
+                       throw new RuntimeException(MessageFormat.format("context.lookup() failed: {0}", ex.getMessage()), ex); //NOI18N
                }
        }