Author: scabanovich
Date: 2007-11-22 08:35:41 -0500 (Thu, 22 Nov 2007)
New Revision: 5034
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/XModelObjectLoaderUtil.java
Log:
Stack traces added to logged errors.
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/XModelObjectLoaderUtil.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/XModelObjectLoaderUtil.java 2007-11-22
11:26:15 UTC (rev 5033)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/XModelObjectLoaderUtil.java 2007-11-22
13:35:41 UTC (rev 5034)
@@ -309,7 +309,7 @@
XModelObject q = o.getChildByPath(co.getPathPart());
if(q != null) EnginesLoader.merge(q, co, false);
} catch (Exception exc) {
-
ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:loadChildren:" +
exc.getMessage());
+
ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:loadChildren:" +
exc.getMessage(), exc);
}
continue;
}
@@ -562,7 +562,7 @@
serialize(object, w);
return w.toString();
} catch (Exception e) {
- ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:asString:"
+ e.getMessage());
+ ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:asString:"
+ e.getMessage(), e);
return "";
}
}
@@ -627,7 +627,7 @@
Element element = XMLUtil.getElement(f.getAbsolutePath());
if(element != null) load(element, o);
} catch (Exception e) {
-
ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:load(f,o):" +
e.getMessage());
+
ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:load(f,o):" +
e.getMessage(), e);
}
}
@@ -637,7 +637,7 @@
try {
if(!serialize(o, w)) return false;
} catch (Exception e) {
-
ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:save(f,o):" +
e.getMessage());
+
ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:save(f,o):" +
e.getMessage(), e);
return false;
}
String r = w.toString();
@@ -696,7 +696,7 @@
try {
return readFile(new File(expandString(filename)));
} catch (Exception e) {
- ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:readFile("
+ filename + "):" + e.getMessage());
+ ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:readFile("
+ filename + "):" + e.getMessage(), e);
return "";
}
}
@@ -713,7 +713,7 @@
try {
return writeFile(new File(expandString(filename)), value);
} catch (Exception e) {
-
ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:writeFile(" +
filename + "):" + e.getMessage());
+
ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:writeFile(" +
filename + "):" + e.getMessage(), e);
return false;
}
}
@@ -734,7 +734,7 @@
}
return null;
} catch (Exception e) {
-
ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:getObjectLoader(" +
object + "):" + e.getMessage());
+
ModelPlugin.getPluginLog().logError("XModelObjectLoaderUtil:getObjectLoader(" +
object + "):" + e.getMessage(), e);
return null;
}
}
Show replies by date