ExceptionHandler Property
Gets or sets a handler for Exceptions.
This handler will not be called, if PropagateExceptions
is set to true
.
ITypeResolver
argument will only be not-null, when the exception occurs during execution of
a command. I.e. only when the resolver is available.
Func<Exception, ITypeResolver, int> ExceptionHandler { get; set; }
- Namespace
- Spectre
.Console .Cli - Containing Type
- ICommandAppSettings
- Property Type
- Func
<Exception, ITypeResolver, int>