Java Code Examples for org.jdom2.input.JDOMParseException#getMessage()

The following examples show how to use org.jdom2.input.JDOMParseException#getMessage() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InvalidXMLException.java    From PGM with GNU Affero General Public License v3.0 5 votes vote down vote up
public static InvalidXMLException fromJDOM(JDOMParseException e, String documentPath) {
  return new InvalidXMLException(
      e.getMessage(),
      null,
      e.getPartialDocument(),
      documentPath,
      e.getLineNumber(),
      e.getLineNumber(),
      e.getColumnNumber(),
      e);
}
 
Example 2
Source File: InvalidXMLException.java    From ProjectAres with GNU Affero General Public License v3.0 4 votes vote down vote up
public static InvalidXMLException fromJDOM(JDOMParseException e, String documentPath) {
    return new InvalidXMLException(e.getMessage(), null, e.getPartialDocument(), documentPath, e.getLineNumber(), e.getLineNumber(), e.getColumnNumber(), e);
}