Skip to content

Commit

Permalink
Improved error reporting (for longtest)
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Oct 7, 2014
1 parent d7ee796 commit d1d24f9
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -204,6 +204,13 @@ private XSSchemaSet parseSchema(Element schema) throws SchemaException {
} catch (TransformerException e) {
throw new SchemaException("XML transformer error during XSD schema parsing: "
+ e.getMessage() + "(locator: "+e.getLocator()+", embedded exception:"+ e.getException()+") in "+shortDescription, e);
} catch (RuntimeException e) {
// This sometimes happens, e.g. NPEs in Saxon
if (LOGGER.isErrorEnabled()) {
LOGGER.error("Unexpected error {} during parsing of schema:\n{}",e.getMessage(),DOMUtil.serializeDOMToString(schema));
}
throw new SchemaException("XML error during XSD schema parsing: "
+ e.getMessage() + " in "+shortDescription, e);
}

return xss;
Expand Down

0 comments on commit d1d24f9

Please sign in to comment.