Eat 1.0.1
dotnet add package Eat --version 1.0.1
NuGet\Install-Package Eat -Version 1.0.1
<PackageReference Include="Eat" Version="1.0.1" />
paket add Eat --version 1.0.1
#r "nuget: Eat, 1.0.1"
// Install Eat as a Cake Addin #addin nuget:?package=Eat&version=1.0.1 // Install Eat as a Cake Tool #tool nuget:?package=Eat&version=1.0.1
Eat
A zero dependency library to simplify exception handling.
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.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.1 | 753 | 11/28/2018 |