Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdom.input
Class JDOMParseException  view JDOMParseException download JDOMParseException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.jdom.JDOMException
              extended byorg.jdom.input.JDOMParseException
All Implemented Interfaces:
java.io.Serializable

public class JDOMParseException
extends org.jdom.JDOMException

Thrown during parse errors, with information about where the parse error occurred as well as access to the partially built document.

Version:
$Revision: 1.7 $, $Date: 2004/02/17 02:29:24 $

Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private static java.lang.String CVS_ID
           
private  org.jdom.Document partialDocument
          The portion of the document that was successfully built before the parse error occurred.
 
Fields inherited from class org.jdom.JDOMException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
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, org.jdom.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
 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.
 org.jdom.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.
 
Methods inherited from class org.jdom.JDOMException
getCause, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CVS_ID

private static final java.lang.String CVS_ID
See Also:
Constant Field Values

partialDocument

private final org.jdom.Document partialDocument
The portion of the document that was successfully built before the parse error occurred.

Constructor Detail

JDOMParseException

public 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

public JDOMParseException(java.lang.String message,
                          java.lang.Throwable cause,
                          org.jdom.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 Detail

getPartialDocument

public org.jdom.Document getPartialDocument()
Returns the partial document that was successfully built before the error occurred.


getPublicId

public java.lang.String getPublicId()
Returns the public identifier of the entity where the parse error occurred.


getSystemId

public java.lang.String getSystemId()
Returns the system identifier of the entity where the parse error occurred.


getLineNumber

public int getLineNumber()
Returns the line number of the end of the text where the parse error occurred.

The first line in the document is line 1.


getColumnNumber

public int getColumnNumber()
Returns the column number of the end of the text where the parse error occurred.

The first column in a line is position 1.