Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class ExceptionExtensions

    Extensions to the Exception class to allow for adding and retrieving suppressed exceptions, like you can do in Java.

    Inheritance
    object
    ExceptionExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public static class ExceptionExtensions

    Fields

    SUPPRESSED_EXCEPTIONS_KEY

    Extensions to the Exception class to allow for adding and retrieving suppressed exceptions, like you can do in Java.

    Declaration
    public static readonly string SUPPRESSED_EXCEPTIONS_KEY
    Field Value
    Type Description
    string

    Methods

    AddSuppressed(Exception, Exception)

    Extensions to the Exception class to allow for adding and retrieving suppressed exceptions, like you can do in Java.

    Declaration
    public static void AddSuppressed(this Exception e, Exception exception)
    Parameters
    Type Name Description
    Exception e
    Exception exception

    GetSuppressed(Exception)

    Extensions to the Exception class to allow for adding and retrieving suppressed exceptions, like you can do in Java.

    Declaration
    public static Exception[] GetSuppressed(this Exception e)
    Parameters
    Type Name Description
    Exception e
    Returns
    Type Description
    Exception[]

    GetSuppressedAsList(Exception)

    Extensions to the Exception class to allow for adding and retrieving suppressed exceptions, like you can do in Java.

    Declaration
    public static IList<Exception> GetSuppressedAsList(this Exception e)
    Parameters
    Type Name Description
    Exception e
    Returns
    Type Description
    IList<Exception>
    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.