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 String
fBaseSystemId
Base system identifier.
protected int
fCharacterOffset
Character offset.
protected int
fColumnNumber
Column number.
protected String
fExpandedSystemId
expanded System identifier.
protected int
fLineNumber
Line number.
protected String
fLiteralSystemId
literal System identifier.
protected String
fPublicId
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

String
getBaseSystemId()
Returns the base system identifier.
int
getCharacterOffset()
Returns the character offset.
int
getColumnNumber()
Returns the row number.
String
getExpandedSystemId()
Returns the expanded system identifier.
int
getLineNumber()
Returns the line number.
String
getLiteralSystemId()
Returns the literal system identifier.
String
getPublicId()
Returns the public identifier.
String
toString()
Returns a string representation of this object.

Methods inherited from class org.apache.xerces.xni.XNIException

getException

Field Details

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 Details

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 Details

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.