debug step

This commit is contained in:
Christian P. MOMON 2010-02-25 02:04:58 +01:00
parent d4dc85485d
commit e734d5bc07

View file

@ -721,38 +721,37 @@ public class Presenter
// Parse the input file. // Parse the input file.
result = db.parse (source); result = db.parse (source);
System.out.println("ZO4");
if (errorHandler.hasError ()) if (errorHandler.hasError ())
{ {
System.out.println("ZO4a"); System.out.println("ZO4a");
throw new Exception (errorHandler.toString ()); throw new Exception (errorHandler.toString ());
} }
else else
{System.out.println("ZO4b"); {
DomPresenter.addMetaTag (result, "generator", "XID 0.0"); DomPresenter.addMetaTag (result, "generator", "XID 0.0");
} }
System.out.println("ZO5");
} }
catch (ParserConfigurationException exception) catch (ParserConfigurationException exception)
{ {
String errorMessage = "Parser configuration exception: " + exception.getMessage (); String errorMessage = "Parser configuration exception: " + exception.getMessage ();
logger.error (errorMessage); logger.error (errorMessage);
result = null; result = null;
throw new Exception (errorMessage); throw new Exception (errorMessage, exception);
} }
catch (SAXException exception) catch (SAXException exception)
{ {
String errorMessage = "Error during SAX parsing: " + exception.getMessage (); String errorMessage = "Error during SAX parsing: " + exception.getMessage ();
logger.error (errorMessage); logger.error (errorMessage);
result = null; result = null;
throw new Exception (errorMessage); throw new Exception (errorMessage, exception);
} }
catch (IOException exception) catch (IOException exception)
{ {
String errorMessage = "IOError during parsing." + exception.getMessage (); String errorMessage = "IOError during parsing." + exception.getMessage ();
logger.error (errorMessage); logger.error (errorMessage);
result = null; result = null;
throw new Exception (errorMessage); throw new Exception (errorMessage, exception);
} }
// //