A zero dependency library to simplify exception handling.
Let's look at some examples! Eat can be used using Eat.Exception()
or IsExceptionThrown()
.
var setting = Eat.Exception(() => { return ReadSetting("setting"); }, "fallback value");
// or
Eat.Exception(() => { DoSomething(); });
var isException = Eat.IsExceptionThrown(() => { DoSomething(); });
The latest release can be found on NuGet. https://www.nuget.org/packages/eat
Whoops! You can log the issue here: https://github.com/benbarth/eat/issues.
If you would like to contribute a bug fix or performance improvement you can submit a pull request here: https://github.com/benbarth/eat/pulls.