Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add Source SAXParseException message to JDOMException message.

  • Loading branch information...
commit a497c11b34cebe57b98006ba10a3d3e200c9bf1d 1 parent b28496c
@rolfl rolfl authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 core/src/java/org/jdom2/input/sax/SAXBuilderEngine.java
View
6 core/src/java/org/jdom2/input/sax/SAXBuilderEngine.java
@@ -226,10 +226,12 @@ public Document build(final InputSource in)
final String systemId = e.getSystemId();
if (systemId != null) {
throw new JDOMParseException("Error on line " +
- e.getLineNumber() + " of document " + systemId, e, doc);
+ e.getLineNumber() + " of document " + systemId + ": " +
+ e.getMessage(), e, doc);
}
throw new JDOMParseException("Error on line " +
- e.getLineNumber(), e, doc);
+ e.getLineNumber() + ": " +
+ e.getMessage(), e, doc);
} catch (final SAXException e) {
throw new JDOMParseException("Error in building: " +
e.getMessage(), e, saxHandler.getDocument());
Please sign in to comment.
Something went wrong with that request. Please try again.