Raycynix.Extensions.Exceptions
1.0.1
dotnet add package Raycynix.Extensions.Exceptions --version 1.0.1
NuGet\Install-Package Raycynix.Extensions.Exceptions -Version 1.0.1
<PackageReference Include="Raycynix.Extensions.Exceptions" Version="1.0.1" />
<PackageVersion Include="Raycynix.Extensions.Exceptions" Version="1.0.1" />
<PackageReference Include="Raycynix.Extensions.Exceptions" />
paket add Raycynix.Extensions.Exceptions --version 1.0.1
#r "nuget: Raycynix.Extensions.Exceptions, 1.0.1"
#:package Raycynix.Extensions.Exceptions@1.0.1
#addin nuget:?package=Raycynix.Extensions.Exceptions&version=1.0.1
#tool nuget:?package=Raycynix.Extensions.Exceptions&version=1.0.1
Raycynix.Extensions.Exceptions
Raycynix.Extensions.Exceptions is the core exception handling package.
What it contains
AddRaycynixExceptions(...)- exception mapping
- secure data masking
- transient exception classification
- retry execution services
- background task execution helpers
- common Raycynix exception types
What it does not contain
- ASP.NET Core middleware
IApplicationBuilderextensions- HTTP response formatting
Usage
builder.Services.AddRaycynixExceptions(options =>
{
options.Map<InvalidOperationException>(
errorCode: "invalid_operation",
message: "The operation is not valid.",
statusCode: 400);
});
You can also customize mappings for domain-specific exceptions:
builder.Services.AddRaycynixExceptions(options =>
{
options.Map<UnauthorizedAccessException>(
errorCode: "access_denied",
message: "You do not have permission to perform this action.",
statusCode: 403);
});
For ASP.NET Core request pipeline integration, add Raycynix.Extensions.Exceptions.AspNetCore.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Raycynix.Extensions.Common (>= 1.0.1)
- Raycynix.Extensions.Exceptions.Abstractions (>= 1.0.1)
- Raycynix.Extensions.Logging.Abstractions (>= 2.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Raycynix.Extensions.Exceptions:
| Package | Downloads |
|---|---|
|
Raycynix.Extensions.Exceptions.AspNetCore
ASP.NET Core middleware integration for Raycynix exception handling with structured JSON error responses. |
GitHub repositories
This package is not used by any popular GitHub repositories.
See the package-local CHANGELOG.md for the full change history. Override PackageReleaseNotes in the package project file for major release-specific notes.