org.apache.xerces.xni.parser

Class XMLParseException

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.

Version: $Id: XMLParseException.java,v 1.8 2004/09/02 03:53:53 mrglavas Exp $

Author: Andy Clark, IBM

Field Summary
protected StringfBaseSystemId
Base system identifier.
protected intfCharacterOffset
Character offset.
protected intfColumnNumber
Column number.
protected StringfExpandedSystemId
expanded System identifier.
protected intfLineNumber
Line number.
protected StringfLiteralSystemId
literal System identifier.
protected StringfPublicId
Public identifier.
Constructor Summary
XMLParseException(XMLLocator locator, String message)
Constructs a parse exception.
XMLParseException(XMLLocator locator, String message, Exception exception)
Constructs a parse exception.
Method Summary
StringgetBaseSystemId()
Returns the base system identifier.
intgetCharacterOffset()
Returns the character offset.
intgetColumnNumber()
Returns the row number.
StringgetExpandedSystemId()
Returns the expanded system identifier.
intgetLineNumber()
Returns the line number.
StringgetLiteralSystemId()
Returns the literal system identifier.
StringgetPublicId()
Returns the public identifier.
StringtoString()
Returns a string representation of this object.

Field Detail

fBaseSystemId

protected String fBaseSystemId
Base system identifier.

fCharacterOffset

protected int fCharacterOffset
Character offset.

fColumnNumber

protected int fColumnNumber
Column number.

fExpandedSystemId

protected String fExpandedSystemId
expanded System identifier.

fLineNumber

protected int fLineNumber
Line number.

fLiteralSystemId

protected String fLiteralSystemId
literal System identifier.

fPublicId

protected String fPublicId
Public identifier.

Constructor Detail

XMLParseException

public XMLParseException(XMLLocator locator, String message)
Constructs a parse exception.

XMLParseException

public XMLParseException(XMLLocator locator, String message, Exception exception)
Constructs a parse exception.

Method Detail

getBaseSystemId

public String getBaseSystemId()
Returns the base system identifier.

getCharacterOffset

public int getCharacterOffset()
Returns the character offset.

getColumnNumber

public int getColumnNumber()
Returns the row number.

getExpandedSystemId

public String getExpandedSystemId()
Returns the expanded system identifier.

getLineNumber

public int getLineNumber()
Returns the line number.

getLiteralSystemId

public String getLiteralSystemId()
Returns the literal system identifier.

getPublicId

public String getPublicId()
Returns the public identifier.

toString

public String toString()
Returns a string representation of this object.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.