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 SourceSUPPRESSED_EXCEPTIONS_KEY
Declaration
public static readonly string SUPPRESSED_EXCEPTIONS_KEY
Field Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceAddSuppressed(Exception, Exception)
Declaration
public static void AddSuppressed(this Exception e, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Exception | e | |
| System.Exception | exception |
GetSuppressed(Exception)
Declaration
public static Exception[] GetSuppressed(this Exception e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Exception | e |
Returns
| Type | Description |
|---|---|
| System.Exception[] |
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> |