Class ExceptionExtensions
Extends Exception class.
Inherited Members
Namespace: DotNext.Runtime.ExceptionServices
Assembly: DotNext.dll
Syntax
public static class ExceptionExtensions
Methods
View SourceThrow(Exception, bool)
Throws source
Declaration
[DoesNotReturn]
public static void Throw(this Exception source, bool replaceStackTrace = true)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | source | |
| bool | replaceStackTrace | true to replace stack trace already presented in |
Exceptions
| Type | Condition |
|---|---|
| Exception | The exception which is equal to |
Throw<TException>()
Throws TException.
Declaration
[DoesNotReturn]
public static void Throw<TException>() where TException : Exception, new()
Type Parameters
| Name | Description |
|---|---|
| TException |