All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.microstar.xml.XmlException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----com.microstar.xml.XmlException

public class XmlException
extends Exception
Convenience exception class for reporting XML parsing errors.

This is an exception class that you can use to encapsulate all of the information from Ælfred's error callback. This is not necessary for routine use of Ælfred, but it is used by the optional HandlerBase class.

Note that the core Ælfred classes do not use this exception.

Version:
1.1
Author:
Copyright (c) 1998 by Microstar Software Ltd., written by David Megginson <dmeggins@microstar.com>
See Also:
error, HandlerBase

Constructor Index

 o XmlException(String, String, int, int)
Construct a new XML parsing exception.

Method Index

 o getColumn()
Get the column number containing the error.
 o getLine()
Get the line number containing the error.
 o getMessage()
Get the error message from the parser.
 o getSystemId()
Get the URI of the entity containing the error.

Constructors

 o XmlException
 public XmlException(String message,
                     String systemId,
                     int line,
                     int column)
Construct a new XML parsing exception.

Parameters:
message - The error message from the parser.
systemId - The URI of the entity containing the error.
line - The line number where the error appeared.
column - The column number where the error appeared.

Methods

 o getMessage
 public String getMessage()
Get the error message from the parser.

Returns:
A string describing the error.
Overrides:
getMessage in class Throwable
 o getSystemId
 public String getSystemId()
Get the URI of the entity containing the error.

Returns:
The URI as a string.
 o getLine
 public int getLine()
Get the line number containing the error.

Returns:
The line number as an integer.
 o getColumn
 public int getColumn()
Get the column number containing the error.

Returns:
The column number as an integer.

All Packages  Class Hierarchy  This Package  Previous  Next  Index