Update of
/var/cvs/applications/editwizard/src/org/mmbase/applications/editwizard
In directory james.mmbase.org:/tmp/cvs-serv7042
Modified Files:
Wizard.java WizardException.java
Log Message:
logging, exception wrapping
See also:
http://cvs.mmbase.org/viewcvs/applications/editwizard/src/org/mmbase/applications/editwizard
Index: Wizard.java
===================================================================
RCS file:
/var/cvs/applications/editwizard/src/org/mmbase/applications/editwizard/Wizard.java,v
retrieving revision 1.178
retrieving revision 1.179
diff -u -b -r1.178 -r1.179
--- Wizard.java 13 Jan 2009 14:24:11 -0000 1.178
+++ Wizard.java 15 Jan 2009 18:10:26 -0000 1.179
@@ -46,7 +46,7 @@
* @author Pierre van Rooden
* @author Hillebrand Gelderblom
* @since MMBase-1.6
- * @version $Id: Wizard.java,v 1.178 2009/01/13 14:24:11 michiel Exp $
+ * @version $Id: Wizard.java,v 1.179 2009/01/15 18:10:26 michiel Exp $
*
*/
public class Wizard implements org.mmbase.util.SizeMeasurable,
java.io.Serializable {
@@ -1304,9 +1304,8 @@
// Remove the refering node.
parent.removeChild(referer);
} catch (RuntimeException e) {
- log.error(Logging.stackTrace(e));
throw new WizardException("Error resolving external part
'" +
- includeUrl + "'");
+ includeUrl + "': " +
e.getMessage(), e);
}
}
}
@@ -1911,7 +1910,7 @@
theValue = dataNode.getFirstChild().getNodeValue();
}
} catch (RuntimeException e) {
- log.error(Logging.stackTrace(e));
+ log.error(e.getMessage(), e);
}
// if this is a relation, we want the value of the dnumber field
@@ -2897,8 +2896,7 @@
try {
con = databaseConnector.getConstraints(objecttype);
} catch (Exception e) {
- log.error(Logging.stackTrace(e));
-
+ log.error(e.getMessage(), e);
return null;
}
Index: WizardException.java
===================================================================
RCS file:
/var/cvs/applications/editwizard/src/org/mmbase/applications/editwizard/WizardException.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- WizardException.java 29 Aug 2003 09:34:39 -0000 1.3
+++ WizardException.java 15 Jan 2009 18:10:26 -0000 1.4
@@ -14,7 +14,7 @@
*
* @author Kars Veling
* @since MMBase-1.6
- * @version $Id: WizardException.java,v 1.3 2003/08/29 09:34:39 pierre Exp $
+ * @version $Id: WizardException.java,v 1.4 2009/01/15 18:10:26 michiel Exp $
*/
public class WizardException extends java.lang.Exception {
@@ -30,7 +30,7 @@
//javadoc is inherited
public WizardException(Throwable cause) {
- super(cause);
+ super(cause.getMessage(), cause);
}
//javadoc is inherited
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs