Class SAXException
Encapsulate a general SAX error or warning.
Inheritance
Implements
Inherited Members
Namespace: Sax
Assembly: Lucene.Net.Benchmark.dll
Syntax
[Serializable]
public class SAXException : Exception, ISerializable
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 class can contain basic error or warning information from either the XML parser or the application: a parser writer or application writer can subclass it to provide additional functionality. SAX handlers may throw this exception or any exception subclassed from it. If the application needs to pass through other types of exceptions, it must wrap those exceptions in a SAXException or an exception derived from a SAXException. If the parser or application needs to include information about a specific location in an XML document, it should use the SAXParseException subclass.Constructors
SAXException()
Create a new SAXException.
Declaration
public 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 class can contain basic error or warning information from either the XML parser or the application: a parser writer or application writer can subclass it to provide additional functionality. SAX handlers may throw this exception or any exception subclassed from it. If the application needs to pass through other types of exceptions, it must wrap those exceptions in a SAXException or an exception derived from a SAXException. If the parser or application needs to include information about a specific location in an XML document, it should use the SAXParseException subclass.SAXException(Exception)
Create a new SAXException wrapping an existing exception.
Declaration
public SAXException(Exception e)
Parameters
Type | Name | Description |
---|---|---|
Exception | e | The exception to be wrapped in a SAXException. |
Remarks
The existing exception will be embedded in the new one, and its message will become the default message for the SAXException.
SAXException(string)
Create a new SAXException.
Declaration
public SAXException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error or warning message. |
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 class can contain basic error or warning information from either the XML parser or the application: a parser writer or application writer can subclass it to provide additional functionality. SAX handlers may throw this exception or any exception subclassed from it. If the application needs to pass through other types of exceptions, it must wrap those exceptions in a SAXException or an exception derived from a SAXException. If the parser or application needs to include information about a specific location in an XML document, it should use the SAXParseException subclass.SAXException(string, Exception)
Create a new SAXException from an existing exception.
Declaration
public SAXException(string message, Exception e)
Parameters
Type | Name | Description |
---|---|---|
string | message | The detail message. |
Exception | e | The exception to be wrapped in a SAXException. |
Remarks
The existing exception will be embedded in the new one, but the new exception will have its own message.
Properties
Exception
Gets the embedded exception, if any, or null
if there is none.
Declaration
public virtual Exception Exception { get; }
Property Value
Type | Description |
---|---|
Exception |
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 class can contain basic error or warning information from either the XML parser or the application: a parser writer or application writer can subclass it to provide additional functionality. SAX handlers may throw this exception or any exception subclassed from it. If the application needs to pass through other types of exceptions, it must wrap those exceptions in a SAXException or an exception derived from a SAXException. If the parser or application needs to include information about a specific location in an XML document, it should use the SAXParseException subclass.Message
Return a detail message for this exception.
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Remarks
If there is an embedded exception, and if the SAXException has no detail message of its own, this method will return the detail message from the embedded exception.
Methods
ToString()
Override ToString to pick up any embedded exception.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of this exception. |
Overrides
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 class can contain basic error or warning information from either the XML parser or the application: a parser writer or application writer can subclass it to provide additional functionality. SAX handlers may throw this exception or any exception subclassed from it. If the application needs to pass through other types of exceptions, it must wrap those exceptions in a SAXException or an exception derived from a SAXException. If the parser or application needs to include information about a specific location in an XML document, it should use the SAXParseException subclass.