Table of Contents

Interface IUnhandledExceptionHandler

Namespace
McMaster.Extensions.Hosting.CommandLine
Assembly
McMaster.Extensions.Hosting.CommandLine.dll

Used by McMaster.Extensions.Hosting.CommandLine.Internal.CommandLineLifetime to handle exceptions that are emitted from the CommandLineApplication<TModel> e.g. during parsing or execution

public interface IUnhandledExceptionHandler

Methods

HandleException(Exception)

Handle otherwise uncaught exception. You are free to log, rethrow, … the exception

void HandleException(Exception e)

Parameters

e Exception

An otherwise uncaught exception