Class SAXParseException
Encapsulate an XML parse error or warning.
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class SAXParseException : SAXException
Remarks
This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY. Seehttp://www.saxproject.org for further information.
This exception may include information for locating the error in the original XML document, as if it came from a ILocator object. Note that although the application will receive a SAXParseException as the argument to the handlers in the IErrorHandler interface, 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.
Constructors
Name | Description |
---|---|
SAXParseException(String, ILocator) | Create a new SAXParseException from a message and a ILocator. |
SAXParseException(String, ILocator, Exception) | Wrap an existing exception in a SAXParseException. |
SAXParseException(String, String, String, Int32, Int32) | Create a new SAXParseException. |
SAXParseException(String, String, String, Int32, Int32, Exception) | Create a new SAXParseException with an embedded exception. |
Properties
Name | Description |
---|---|
ColumnNumber | The column number of the end of the text where the exception occurred. The first column in a line is position 1. An integer representing the column number, or -1 if none is available. |
LineNumber | The line number of the end of the text where the exception occurred. The first line is line 1. An integer representing the line number, or -1 if none is available. |
PublicId | Get the public identifier of the entity where the exception occurred. Returns a string containing the public identifier, or null if none is available. |
SystemId | Get the system identifier of the entity where the exception occurred. If the system identifier is a URL, it will have been resolved fully. A string containing the system identifier, or null if none is available. |