benbarth / eat

A zero dependency library to simplify exception handling.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A zero dependency library to simplify exception handling.

License:MIT License


Languages

Language:C# 100.0%