SetExceptionHandler(IConfigurator, Func<Exception, ITypeResolver, int>) Method
Sets the ExceptionsHandler.
public static IConfigurator SetExceptionHandler(this IConfigurator configurator, Func<Exception, ITypeResolver, int> exceptionHandler)
- Namespace
- Spectre
.Console .Cli - Containing Type
- Configurator
Extensions
Parameters
- IConfigurator configurator
- The configurator.
-
Func
<Exception, ITypeResolver, int> exceptionHandler - The Action that handles the exception.