Class ExceptionHandler<TException>
- Namespace
- Cuemon
- Assembly
- Cuemon.Core.dll
Provides a generic way to handle an System.Exception.
public class ExceptionHandler<TException>
where TException : Exception
Type Parameters
TException
The type of the System.Exception.
- Inheritance
-
ObjectExceptionHandler<TException>
Methods
Create(Func<TException>)
Specifies the function delegate that determines the System.Exception to be thrown.
public ExceptionInvoker<TException> Create(Func<TException> handler)
Parameters
handler
Func<TException>The function delegate that determines the System.Exception to be thrown.
Returns
- ExceptionInvoker<TException>
An ExceptionInvoker<TException> with the specified
handler
.
Exceptions
- System.ArgumentNullException
handler
cannot be null.