Exceptions

Any exception that is thrown from the method or constructor is thrown as is. You can catch it over the AppRunner<T>.Run() method otherwise exception will be unhandled and application will crash.

1
2
3
4
5
6
7
8
9
try
{
    AppRunner<Calculator> appRunner = new AppRunner<Calculator>();
    return appRunner.Run(args);
}
catch(MyBusinessException ex)
{
    Console.WriteLine(ex.Message);
}

Last update: February 22, 2020