// Error generated during parsing)
Exception x = sxe;
if (sxe.getException() != null)
x = sxe.getException();
sLogger.throwing(getClass().getName(), "createDocument", x);
throw new ControlException(x.getLocalizedMessage());
}
catch (ParserConfigurationException pce)
{
// Parser with specified options can't be built
sLogger.throwing(getClass().getName(), "createDocument", pce);
throw new ControlException(pce.getLocalizedMessage());
}
catch (IOException ioe)
{
// I/O error
sLogger.throwing(getClass().getName(), "createDocument", ioe);
throw new ControlException(ioe.getLocalizedMessage());
}
return document;
}