| java.lang.Object java.lang.Throwable java.lang.Exception org.jdom.JDOMException org.jdom.input.JDOMParseException
JDOMParseException | public class JDOMParseException extends JDOMException (Code) | | Thrown during parse errors, with information about where the parse error
occurred as well as access to the partially built document.
version: $Revision: 1.1 $, $Date: 2005/04/27 09:32:40 $ author: Laurent Bihanic |
Constructor Summary | |
public | JDOMParseException(String message, Throwable cause) This will create a parse Exception with the given
message and wrap the Exception that cause a document
parse to fail. | public | JDOMParseException(String message, 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. |
Method Summary | |
public int | getColumnNumber() Returns the column number of the end of the text where the
parse error occurred. | public int | getLineNumber() Returns the line number of the end of the text where the
parse error occurred. | public Document | getPartialDocument() Returns the partial document that was successfully built before
the error occurred. | public String | getPublicId() Returns the public identifier of the entity where the
parse error occurred. | public String | getSystemId() Returns the system identifier of the entity where the
parse error occurred. |
JDOMParseException | public JDOMParseException(String message, Throwable cause)(Code) | | This will create a parse Exception with the given
message and wrap the Exception that cause a document
parse to fail.
Parameters: message - String message indicatingthe problem that occurred. Parameters: cause - Throwable that caused thisto be thrown. |
JDOMParseException | public JDOMParseException(String message, Throwable cause, Document partialDocument)(Code) | | 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.
Parameters: message - String message indicatingthe problem that occurred. Parameters: cause - Throwable that caused thisto be thrown. Parameters: partialDocument - Document the portion ofthe input XML document that wassuccessfully built. |
getColumnNumber | public int getColumnNumber()(Code) | | Returns the column number of the end of the text where the
parse error occurred.
The first column in a line is position 1.
an integer representing the column number, or -1if the information is not available. |
getLineNumber | public int getLineNumber()(Code) | | Returns the line number of the end of the text where the
parse error occurred.
The first line in the document is line 1.
an integer representing the line number, or -1if the information is not available. |
getPartialDocument | public Document getPartialDocument()(Code) | | Returns the partial document that was successfully built before
the error occurred.
the partial document or null if none. |
getPublicId | public String getPublicId()(Code) | | Returns the public identifier of the entity where the
parse error occurred.
a string containing the public identifier, ornull if the information is not available. |
getSystemId | public String getSystemId()(Code) | | Returns the system identifier of the entity where the
parse error occurred.
a string containing the system identifier, ornull if the information is not available. |
|
|