public class JDOMParseException extends JDOMException
| Constructor and Description | 
|---|
JDOMParseException(java.lang.String message,
                  java.lang.Throwable cause)
This will create a parse  
Exception with the given
 message and wrap the Exception that cause a document
 parse to fail. | 
JDOMParseException(java.lang.String message,
                  java.lang.Throwable cause,
                  Document partialDocument)
This will create a parse  
Exception with the given
 message and the partial document and wrap the
 Exception that cause a document parse to fail. | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getColumnNumber()
Returns the column number of the end of the text where the
 parse error occurred. 
 | 
int | 
getLineNumber()
Returns the line number of the end of the text where the
 parse error occurred. 
 | 
Document | 
getPartialDocument()
Returns the partial document that was successfully built before
 the error occurred. 
 | 
java.lang.String | 
getPublicId()
Returns the public identifier of the entity where the
 parse error occurred. 
 | 
java.lang.String | 
getSystemId()
Returns the system identifier of the entity where the
 parse error occurred. 
 | 
public JDOMParseException(java.lang.String message,
                          java.lang.Throwable cause)
Exception with the given
 message and wrap the Exception that cause a document
 parse to fail.message - String message indicating
                the problem that occurred.cause - Throwable that caused this
              to be thrown.public JDOMParseException(java.lang.String message,
                          java.lang.Throwable cause,
                          Document partialDocument)
Exception with the given
 message and the partial document and wrap the
 Exception that cause a document parse to fail.message - String message indicating
                the problem that occurred.cause - Throwable that caused this
              to be thrown.partialDocument - Document the portion of
                        the input XML document that was
                        successfully built.public Document getPartialDocument()
public java.lang.String getPublicId()
null if the information is not available.public java.lang.String getSystemId()
null if the information is not available.public int getLineNumber()
The first line in the document is line 1.
public int getColumnNumber()
The first column in a line is position 1.
Copyright © 2021 Jason Hunter, Brett McLaughlin. All Rights Reserved.