Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SAXException

    Encapsulate a general SAX error or warning.

    Inheritance
    object
    Exception
    SAXException
    SAXNotRecognizedException
    SAXNotSupportedException
    SAXParseException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetType()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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
    Exception.Message
    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
    Exception.ToString()
    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.

    Implements

    ISerializable
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.