FluentErrors 1.0.0
dotnet add package FluentErrors --version 1.0.0
NuGet\Install-Package FluentErrors -Version 1.0.0
<PackageReference Include="FluentErrors" Version="1.0.0" />
paket add FluentErrors --version 1.0.0
#r "nuget: FluentErrors, 1.0.0"
// Install FluentErrors as a Cake Addin #addin nuget:?package=FluentErrors&version=1.0.0 // Install FluentErrors as a Cake Tool #tool nuget:?package=FluentErrors&version=1.0.0
Fluent Errors
Overview
With Fluent Errors, you can chain one or many assertions to an object, to effect bespoke exception(s). The origin for this code came from N-Tier ASP.NET Core Web Api where it was convenient to have a constistent and ubiquitous behaviour across all tiers of the application. Indeed, mapping these exceptions to http response codes is made as straight-forward as possible with this library.
Notes
Commands
# Restore tools
dotnet tool restore
# Run unit tests
gci **/TestResults/ | ri -r; dotnet test -c Release -s .runsettings; dotnet reportgenerator -targetdir:coveragereport -reports:**/coverage.cobertura.xml -reporttypes:"html;jsonsummary"; start coveragereport/index.html;
# Run mutation tests
gci **/StrykerOutput/ | ri -r; dotnet stryker -o;
# Pack and publish a pre-release to a local feed
$suffix="alpha001"; dotnet pack -c Release -o nu --version-suffix $suffix; dotnet nuget push "nu\*.*$suffix.nupkg" --source localdev; gci nu/ | ri -r; rmdir nu;
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Analyse (>= 1.0.0)
- FluentValidation (>= 11.9.1)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- System.Text.Json (>= 8.0.3)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on FluentErrors:
Package | Downloads |
---|---|
EnterpriseStartup.Messaging
Provides messaging abstractions and implementation. |
|
EnterpriseStartup.Utils
Provides common utilities for EnterpriseStartup assemblies. |
|
EnterpriseStartup.Blobs
Provides blob abstractions and implementation. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 602 | 5/16/2024 |