From 53891a5b2d8cbbae71b137c2913dd27760c2a8cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 18 May 2016 09:35:30 +0200 Subject: [PATCH] Continued a bit: - ignored for i18n - added trace message --- .../database/BaseAddressbookDatabaseBean.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java b/src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java index ff9cd33..42a4c88 100644 --- a/src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java +++ b/src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java @@ -463,24 +463,24 @@ public abstract class BaseAddressbookDatabaseBean 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 BaseAddressbookDatabaseBean extends BaseDatabaseBean { // Throw again throw new EJBException(ex); } + + // Trace message + this.getLoggerBeanLocal().logTrace("sendEmail: EXIT!"); //NOI18N } /** -- 2.39.5