public class SAXParseException extends SAXException
This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY.
This exception will include information for locating the error in the original XML document. Note that although the application will receive a SAXParseException, the application is not actually required to throw the exception; instead, it can simply read the information in it and take a different action.
Since this exception is a subclass of SAXException, it inherits the ability to wrap another exception.
SAXException,
Locator,
Serialized Form| Constructor and Description |
|---|
SAXParseException(String message,
Locator locator)
Create a new SAXParseException from a message and a Locator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnNumber()
The column number of the end of the text where the exception occurred.
|
int |
getLineNumber()
The line number of the end of the text where the exception occurred.
|
String |
getPublicId()
Get the public identifier of the entity where the exception occurred.
|
String |
getSystemId()
Get the system identifier of the entity where the exception occurred.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic String getPublicId()
Locator.getPublicId()public String getSystemId()
If the system identifier is a URL, it will be resolved fully.
Locator.getSystemId()public int getLineNumber()
Locator.getLineNumber()public int getColumnNumber()
The first column in a line is position 1.
Locator.getColumnNumber()Copyright © 2012 code4tv.com. All Rights Reserved.