Class XMLParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.htmlunit.cyberneko.xerces.xni.XNIException
-
- org.htmlunit.cyberneko.xerces.xni.parser.XMLParseException
-
- All Implemented Interfaces:
java.io.Serializable
public class XMLParseException extends XNIException
A parsing exception. This exception is different from the standard XNI exception in that it stores the location in the document (or its entities) where the exception occurred.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
baseSystemId_
Base system identifier.private int
characterOffset_
Character offset.private int
columnNumber_
Column number.private java.lang.String
expandedSystemId_
expanded System identifier.private int
lineNumber_
Line number.private java.lang.String
literalSystemId_
literal System identifier.private java.lang.String
publicId_
Public identifier.
-
Constructor Summary
Constructors Constructor Description XMLParseException(XMLLocator locator, java.lang.String message)
XMLParseException(XMLLocator locator, java.lang.String message, java.lang.Exception exception)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBaseSystemId()
int
getCharacterOffset()
int
getColumnNumber()
java.lang.String
getExpandedSystemId()
int
getLineNumber()
java.lang.String
getLiteralSystemId()
java.lang.String
getPublicId()
java.lang.String
toString()
-
Methods inherited from class org.htmlunit.cyberneko.xerces.xni.XNIException
getException
-
-
-
-
Field Detail
-
publicId_
private java.lang.String publicId_
Public identifier.
-
literalSystemId_
private java.lang.String literalSystemId_
literal System identifier.
-
expandedSystemId_
private java.lang.String expandedSystemId_
expanded System identifier.
-
baseSystemId_
private java.lang.String baseSystemId_
Base system identifier.
-
lineNumber_
private int lineNumber_
Line number.
-
columnNumber_
private int columnNumber_
Column number.
-
characterOffset_
private int characterOffset_
Character offset.
-
-
Constructor Detail
-
XMLParseException
public XMLParseException(XMLLocator locator, java.lang.String message)
-
XMLParseException
public XMLParseException(XMLLocator locator, java.lang.String message, java.lang.Exception exception)
-
-
Method Detail
-
getPublicId
public java.lang.String getPublicId()
- Returns:
- the public identifier.
-
getExpandedSystemId
public java.lang.String getExpandedSystemId()
- Returns:
- the expanded system identifier.
-
getLiteralSystemId
public java.lang.String getLiteralSystemId()
- Returns:
- the literal system identifier.
-
getBaseSystemId
public java.lang.String getBaseSystemId()
- Returns:
- the base system identifier.
-
getLineNumber
public int getLineNumber()
- Returns:
- the line number.
-
getColumnNumber
public int getColumnNumber()
- Returns:
- the row number.
-
getCharacterOffset
public int getCharacterOffset()
- Returns:
- the character offset.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-