org.apache.xerces.xni.parser
Class XMLParseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.apache.xerces.xni.XNIException
                          |
                          +--org.apache.xerces.xni.parser.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.2 2001/08/23 00:35:37 lehors Exp $
Author:
Andy Clark, IBM
See Also:
Serialized Form

Field Summary
protected  java.lang.String fBaseSystemId
          Base system identifier.
protected  int fColumnNumber
          Column number.
protected  int fLineNumber
          Line number.
protected  java.lang.String fPublicId
          Public identifier.
protected  java.lang.String fSystemId
          System identifier.
 
Constructor Summary
XMLParseException(XMLLocator locator, java.lang.String message)
          Constructs a parse exception.
XMLParseException(XMLLocator locator, java.lang.String message, java.lang.Exception exception)
          Constructs a parse exception.
 
Method Summary
 java.lang.String getBaseSystemId()
          Returns the base system identifier.
 int getColumnNumber()
          Returns the row number.
 int getLineNumber()
          Returns the line number.
 java.lang.String getPublicId()
          Returns the public identifier.
 java.lang.String getSystemId()
          Returns the system identifier.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class org.apache.xerces.xni.XNIException
getException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fPublicId

protected java.lang.String fPublicId
Public identifier.

fSystemId

protected java.lang.String fSystemId
System identifier.

fBaseSystemId

protected java.lang.String fBaseSystemId
Base system identifier.

fLineNumber

protected int fLineNumber
Line number.

fColumnNumber

protected int fColumnNumber
Column number.
Constructor Detail

XMLParseException

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

XMLParseException

public XMLParseException(XMLLocator locator,
                         java.lang.String message,
                         java.lang.Exception exception)
Constructs a parse exception.
Method Detail

getPublicId

public java.lang.String getPublicId()
Returns the public identifier.

getSystemId

public java.lang.String getSystemId()
Returns the 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.

toString

public java.lang.String toString()
Returns a string representation of this object.
Overrides:
toString in class java.lang.Throwable


Copyright © 1999-2001 Apache XML Project. All Rights Reserved.