Class ExceptionHandler<TException>
Provides a generic way to handle an Exception.
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public class ExceptionHandler<TException>
where TException : Exception
Type Parameters
Name | Description |
---|---|
TException | The type of the Exception. |
Methods
| Improve this Doc View SourceCreate(Func<TException>)
Specifies the function delegate that determines the Exception to be thrown.
Declaration
public ExceptionInvoker<TException> Create(Func<TException> handler)
Parameters
Type | Name | Description |
---|---|---|
Func<TException> | handler | The function delegate that determines the Exception to be thrown. |
Returns
Type | Description |
---|---|
ExceptionInvoker<TException> | An ExceptionInvoker<TException> with the specified |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|