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.StringbaseSystemId_Base system identifier.private intcharacterOffset_Character offset.private intcolumnNumber_Column number.private java.lang.StringexpandedSystemId_expanded System identifier.private intlineNumber_Line number.private java.lang.StringliteralSystemId_literal System identifier.private java.lang.StringpublicId_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.StringgetBaseSystemId()intgetCharacterOffset()intgetColumnNumber()java.lang.StringgetExpandedSystemId()intgetLineNumber()java.lang.StringgetLiteralSystemId()java.lang.StringgetPublicId()java.lang.StringtoString()-
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:
toStringin classjava.lang.Throwable
-
-