Create Method
Definition
Create(Func<TException>)
Specifies the function delegate that determines the Exception to be thrown.
public ExceptionInvoker<TException> Create(Func<TException> handler)
Parameters
Returns
- ExceptionInvoker<TException>
An ExceptionInvoker<TException> with the specified
handler.
Exceptions
- ArgumentNullException
handlercannot be null.