From e734d5bc07eb5d0fd52a4c750f692ef7b21f025a Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 25 Feb 2010 02:04:58 +0100 Subject: [PATCH] debug step --- src/fr/devinsy/xid/Presenter.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/fr/devinsy/xid/Presenter.java b/src/fr/devinsy/xid/Presenter.java index f71d009..e9050fb 100644 --- a/src/fr/devinsy/xid/Presenter.java +++ b/src/fr/devinsy/xid/Presenter.java @@ -721,38 +721,37 @@ public class Presenter // Parse the input file. result = db.parse (source); -System.out.println("ZO4"); + if (errorHandler.hasError ()) { - System.out.println("ZO4a"); +System.out.println("ZO4a"); throw new Exception (errorHandler.toString ()); } else - {System.out.println("ZO4b"); + { DomPresenter.addMetaTag (result, "generator", "XID 0.0"); } -System.out.println("ZO5"); } catch (ParserConfigurationException exception) { String errorMessage = "Parser configuration exception: " + exception.getMessage (); logger.error (errorMessage); result = null; - throw new Exception (errorMessage); + throw new Exception (errorMessage, exception); } catch (SAXException exception) { String errorMessage = "Error during SAX parsing: " + exception.getMessage (); logger.error (errorMessage); result = null; - throw new Exception (errorMessage); + throw new Exception (errorMessage, exception); } catch (IOException exception) { String errorMessage = "IOError during parsing." + exception.getMessage (); logger.error (errorMessage); result = null; - throw new Exception (errorMessage); + throw new Exception (errorMessage, exception); } //