• API

    Show / Hide Table of Contents

    Class ExceptionExtensions

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

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

    Fields

    | Improve this Doc View Source

    SUPPRESSED_EXCEPTIONS_KEY

    Declaration
    public static readonly string SUPPRESSED_EXCEPTIONS_KEY
    Field Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    AddSuppressed(Exception, Exception)

    Declaration
    public static void AddSuppressed(this Exception e, Exception exception)
    Parameters
    Type Name Description
    System.Exception e
    System.Exception exception
    | Improve this Doc View Source

    GetSuppressed(Exception)

    Declaration
    public static Exception[] GetSuppressed(this Exception e)
    Parameters
    Type Name Description
    System.Exception e
    Returns
    Type Description
    System.Exception[]
    | Improve this Doc View Source

    GetSuppressedAsList(Exception)

    Declaration
    public static IList<Exception> GetSuppressedAsList(this Exception e)
    Parameters
    Type Name Description
    System.Exception e
    Returns
    Type Description
    System.Collections.Generic.IList<System.Exception>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)