]> git.mxchange.org Git - jjobs-core.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Wed, 18 May 2016 07:35:30 +0000 (09:35 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 25 May 2016 19:00:42 +0000 (21:00 +0200)
- ignored for i18n
- added trace message

src/org/mxchange/jjobs/database/BaseJobsDatabaseBean.java

index 083cca33ae36b088e8a698c49d0526ee4b7e1b3e..0ad7911570ce7034acba12ebec2a71d044559647 100644 (file)
@@ -463,24 +463,24 @@ public abstract class BaseJobsDatabaseBean extends BaseDatabaseBean {
         */
        protected void sendEmail (final String subjectLine, final String templateName, final Address emailAddress, final User user) {
                // Trace message
-               this.getLoggerBeanLocal().logTrace(MessageFormat.format("sendEmail: subjectLine={0},templateName={1},emailAddress={3},user={4} - CALLED!", subjectLine, templateName, emailAddress, user));
+               this.getLoggerBeanLocal().logTrace(MessageFormat.format("sendEmail: subjectLine={0},templateName={1},emailAddress={3},user={4} - CALLED!", subjectLine, templateName, emailAddress, user)); //NOI18N
 
                // All should be set
                if (null == subjectLine) {
                        // Throw NPE
-                       throw new NullPointerException("subjectLine is null");
+                       throw new NullPointerException("subjectLine is null"); //NOI18N
                } else if (subjectLine.isEmpty()) {
                        // No subject line
-                       throw new IllegalArgumentException("subjectLine is empty");
+                       throw new IllegalArgumentException("subjectLine is empty"); //NOI18N
                } else if (null == templateName) {
                        // Throw NPE
-                       throw new NullPointerException("templateName is null");
+                       throw new NullPointerException("templateName is null"); //NOI18N
                } else if (templateName.isEmpty()) {
                        // No template name
-                       throw new IllegalArgumentException("templateName is empty");
+                       throw new IllegalArgumentException("templateName is empty"); //NOI18N
                } else if (null == emailAddress) {
                        // Throw NPE
-                       throw new NullPointerException("emailAddress is null");
+                       throw new NullPointerException("emailAddress is null"); //NOI18N
                }
 
                // Prepare mail wrapper
@@ -508,6 +508,9 @@ public abstract class BaseJobsDatabaseBean extends BaseDatabaseBean {
                        // Throw again
                        throw new EJBException(ex);
                }
+
+               // Trace message
+               this.getLoggerBeanLocal().logTrace("sendEmail: EXIT!"); //NOI18N
        }
 
        /**