All Packages Class Hierarchy This Package Previous Next Index
Class org.xml.sax.XmlException
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----org.xml.sax.XmlException
- public class XmlException
- extends Exception
An exception for reporting XML parsing errors.
This interface is part of the Java implementation of SAX,
the Simple API for XML. It is free for both commercial and
non-commercial use, and is distributed with no warrantee, real
or implied.
This exception is not a required part of SAX, and it is not
referenced in any of the core interfaces. It is used only in
the optional HandlerBase base class, as a means of signalling
parsing errors.
- Author:
- David Megginson, Microstar Software Ltd.
- See Also:
- fatal
-
XmlException(String, String, int, int)
- Construct a new exception with information about the location.
-
getColumn()
- Find the column number (line offset) where the error occurred.
-
getLine()
- Find the line number where the error occurred.
-
getSystemID()
- Find the system identifier (URI) where the error occurred.
XmlException
public XmlException(String message,
String systemID,
int line,
int column)
- Construct a new exception with information about the location.
getSystemID
public String getSystemID()
- Find the system identifier (URI) where the error occurred.
- Returns:
- A string representing the URI, or null if none is available.
getLine
public int getLine()
- Find the line number where the error occurred.
- Returns:
- The line number, or -1 if none is available.
getColumn
public int getColumn()
- Find the column number (line offset) where the error occurred.
- Returns:
- The column number, or -1 if none is available.
All Packages Class Hierarchy This Package Previous Next Index