Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2012-11-16 13:31:58 +0000
committerMarkus Tiede2012-11-16 13:31:58 +0000
commitb1c1198552e8ce4a36dd8e8b383d301c8c3c4f62 (patch)
tree9bf182f42d7ed31ac00703e77866b19de5103fed /org.eclipse.jubula.toolkit.common
parent067f3d819cd1ca6a661027a657de5c62432b2344 (diff)
downloadorg.eclipse.jubula.core-b1c1198552e8ce4a36dd8e8b383d301c8c3c4f62.tar.gz
org.eclipse.jubula.core-b1c1198552e8ce4a36dd8e8b383d301c8c3c4f62.tar.xz
org.eclipse.jubula.core-b1c1198552e8ce4a36dd8e8b383d301c8c3c4f62.zip
Non-sprint task - unified logging.
Diffstat (limited to 'org.eclipse.jubula.toolkit.common')
-rw-r--r--org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/utils/ToolkitUtils.java15
-rw-r--r--org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/xml/businessprocess/ComponentBuilder.java5
2 files changed, 9 insertions, 11 deletions
diff --git a/org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/utils/ToolkitUtils.java b/org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/utils/ToolkitUtils.java
index 689e70b77..96f97c4c7 100644
--- a/org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/utils/ToolkitUtils.java
+++ b/org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/utils/ToolkitUtils.java
@@ -23,7 +23,6 @@ import org.eclipse.core.runtime.Plugin;
import org.eclipse.jubula.toolkit.common.exception.ToolkitPluginException;
import org.eclipse.jubula.toolkit.common.i18n.Messages;
import org.eclipse.jubula.toolkit.common.xml.businessprocess.ComponentBuilder;
-import org.eclipse.jubula.tools.constants.DebugConstants;
import org.eclipse.jubula.tools.constants.StringConstants;
import org.eclipse.jubula.tools.constants.ToolkitConstants;
import org.eclipse.jubula.tools.xml.businessmodell.CompSystem;
@@ -197,37 +196,37 @@ public class ToolkitUtils {
autConfigDialog = constructor.newInstance(
new Object[]{parent, style, autConfig, autName});
} catch (SecurityException e) {
- LOG.error(DebugConstants.ERROR, e);
+ LOG.error(e.getLocalizedMessage(), e);
throw new ToolkitPluginException(
logMsg.toString()
+ String.valueOf(className), e);
} catch (IllegalArgumentException e) {
- LOG.error(DebugConstants.ERROR, e);
+ LOG.error(e.getLocalizedMessage(), e);
throw new ToolkitPluginException(
logMsg.toString()
+ String.valueOf(className), e);
} catch (ClassNotFoundException e) {
- LOG.error(DebugConstants.ERROR, e);
+ LOG.error(e.getLocalizedMessage(), e);
throw new ToolkitPluginException(
logMsg.toString()
+ String.valueOf(className), e);
} catch (NoSuchMethodException e) {
- LOG.error(DebugConstants.ERROR, e);
+ LOG.error(e.getLocalizedMessage(), e);
throw new ToolkitPluginException(
logMsg.toString()
+ String.valueOf(className), e);
} catch (InstantiationException e) {
- LOG.error(DebugConstants.ERROR, e);
+ LOG.error(e.getLocalizedMessage(), e);
throw new ToolkitPluginException(
logMsg.toString()
+ String.valueOf(className), e);
} catch (IllegalAccessException e) {
- LOG.error(DebugConstants.ERROR, e);
+ LOG.error(e.getLocalizedMessage(), e);
throw new ToolkitPluginException(
logMsg.toString()
+ String.valueOf(className), e);
} catch (InvocationTargetException e) {
- LOG.error(DebugConstants.ERROR, e);
+ LOG.error(e.getLocalizedMessage(), e);
throw new ToolkitPluginException(
logMsg.toString()
+ String.valueOf(className), e);
diff --git a/org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/xml/businessprocess/ComponentBuilder.java b/org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/xml/businessprocess/ComponentBuilder.java
index 0b793c78e..9d6425375 100644
--- a/org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/xml/businessprocess/ComponentBuilder.java
+++ b/org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/xml/businessprocess/ComponentBuilder.java
@@ -26,7 +26,6 @@ import org.eclipse.jubula.toolkit.common.PluginStarter;
import org.eclipse.jubula.toolkit.common.businessprocess.ToolkitSupportBP;
import org.eclipse.jubula.toolkit.common.exception.ToolkitPluginException;
import org.eclipse.jubula.toolkit.common.i18n.Messages;
-import org.eclipse.jubula.tools.constants.DebugConstants;
import org.eclipse.jubula.tools.constants.StringConstants;
import org.eclipse.jubula.tools.constants.ToolkitConstants;
import org.eclipse.jubula.tools.exception.GDConfigXmlException;
@@ -155,13 +154,13 @@ public class ComponentBuilder extends AbstractComponentBuilder {
return descr;
}
} catch (NumberFormatException e) {
- log.error(DebugConstants.ERROR, e);
+ log.error(e.getLocalizedMessage(), e);
throw new ToolkitPluginException(
Messages.ErrorWhileReadingAttributes + StringConstants.COLON
+ StringConstants.SPACE
+ String.valueOf(toolkitId), e);
} catch (InvalidRegistryObjectException e) {
- log.error(DebugConstants.ERROR, e);
+ log.error(e.getLocalizedMessage(), e);
throw new ToolkitPluginException(
Messages.ErrorWhileReadingAttributes + StringConstants.COLON
+ StringConstants.SPACE

Back to the top