Class ExceptionExtensions
ExceptionExtensions class. Provides extension methods to help gather exception info.
Inheritance
System.Object
ExceptionExtensions
Namespace: VpnSDK.Extensions
Assembly: cs.temp.dll.dll
Syntax
public static class ExceptionExtensions
Methods
GetAllExceptionMessages(Exception)
Gets all exception messages.
Declaration
public static IEnumerable<string> GetAllExceptionMessages(this Exception ex)
Parameters
Type | Name | Description |
---|---|---|
Exception | ex | The exception. |
Returns
Type | Description |
---|---|
IEnumerable<System.String> | IEnumerable<System.String>. |
GetAllExceptions(Exception)
Gets all inner exceptions.
Declaration
public static IEnumerable<Exception> GetAllExceptions(this Exception ex)
Parameters
Type | Name | Description |
---|---|---|
Exception | ex | The exception. |
Returns
Type | Description |
---|---|
IEnumerable<Exception> | IEnumerable<Exception>. |