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:
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.- Author:
- Andy Clark, IBM
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XMLParseException(XMLLocator locator, String message)XMLParseException(XMLLocator locator, String message, Exception exception)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseSystemId()intgetCharacterOffset()intgetColumnNumber()intgetLineNumber()StringgetLiteralSystemId()StringgetPublicId()StringgetSystemId()StringtoString()-
Methods inherited from class org.htmlunit.cyberneko.xerces.xni.XNIException
getException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
XMLParseException
public XMLParseException(XMLLocator locator, String message)
-
XMLParseException
public XMLParseException(XMLLocator locator, String message, Exception exception)
-
-
Method Detail
-
getPublicId
public String getPublicId()
- Returns:
- the public identifier.
-
getSystemId
public String getSystemId()
- Returns:
- the expanded system identifier.
-
getLiteralSystemId
public String getLiteralSystemId()
- Returns:
- the literal system identifier.
-
getBaseSystemId
public 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.
-
-