Author: michiel
Date: 2009-05-05 10:09:16 +0200 (Tue, 05 May 2009)
New Revision: 34955
Modified:
mmbase/trunk/src/org/mmbase/util/externalprocess/CommandLauncher.java
Log:
Using init cause argument on exceptions
Modified: mmbase/trunk/src/org/mmbase/util/externalprocess/CommandLauncher.java
===================================================================
--- mmbase/trunk/src/org/mmbase/util/externalprocess/CommandLauncher.java
2009-05-05 07:04:13 UTC (rev 34954)
+++ mmbase/trunk/src/org/mmbase/util/externalprocess/CommandLauncher.java
2009-05-05 08:09:16 UTC (rev 34955)
@@ -175,14 +175,14 @@
try {
process = ProcessFactory.getFactory().exec(commandArgs, env);
} catch (IOException e) {
- throw new ProcessException("An I/O error occured: " +
e.getMessage());
+ throw new ProcessException("An I/O error occured: " +
e.getMessage(), e);
} catch (SecurityException e) {
- throw new ProcessException(
- "A security manager exists and its checkExec method " +
"doesn't allow creation of a subprocess.");
+ throw new ProcessException("A security manager exists and its
checkExec method " +
+ "doesn't allow creation of a
subprocess.", e);
} catch (NullPointerException e) {
- throw new ProcessException("Command is null.");
+ throw new ProcessException("Command is null.", e);
} catch (IllegalArgumentException e) {
- throw new ProcessException("Command is empty.");
+ throw new ProcessException("Command is empty.", e);
}
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs