Skip to content

Files

Latest commit

 

History

History
28 lines (21 loc) · 960 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 960 Bytes

Eat

A zero dependency library to simplify exception handling.

License: MIT NuGet

Let's look at some examples! Eat can be used using Eat.Exception() or IsExceptionThrown().

Eat.Exception()

var setting = Eat.Exception(() => { return ReadSetting("setting"); }, "fallback value");
// or
Eat.Exception(() => { DoSomething(); });

IsExceptionThrown()

var isException = Eat.IsExceptionThrown(() => { DoSomething(); });

NuGet

The latest release can be found on NuGet. https://www.nuget.org/packages/eat

Found a bug?

Whoops! You can log the issue here: https://github.com/benbarth/eat/issues.

Contribute

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.