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.
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);
}
//