KamiSama.ExternalServices.Exceptions
10.0.11.8
See the version list below for details.
dotnet add package KamiSama.ExternalServices.Exceptions --version 10.0.11.8
NuGet\Install-Package KamiSama.ExternalServices.Exceptions -Version 10.0.11.8
<PackageReference Include="KamiSama.ExternalServices.Exceptions" Version="10.0.11.8" />
<PackageVersion Include="KamiSama.ExternalServices.Exceptions" Version="10.0.11.8" />
<PackageReference Include="KamiSama.ExternalServices.Exceptions" />
paket add KamiSama.ExternalServices.Exceptions --version 10.0.11.8
#r "nuget: KamiSama.ExternalServices.Exceptions, 10.0.11.8"
#:package KamiSama.ExternalServices.Exceptions@10.0.11.8
#addin nuget:?package=KamiSama.ExternalServices.Exceptions&version=10.0.11.8
#tool nuget:?package=KamiSama.ExternalServices.Exceptions&version=10.0.11.8
KamiSama.ExternalServices.Exceptions
Version: 10.0.0
Description
HTTP-oriented exceptions for external-service discovery failures, timeouts, and invalid provider responses. Use them at integration boundaries to expose consistent localization keys, arguments, and 500 or 504 status codes.
How to use
dotnet add package KamiSama.ExternalServices.Exceptions --version 10.0.0
Throw these exceptions at an external-service boundary so KamiSama problem-details handling can expose a consistent localization key, arguments, and status code:
using KamiSama.ExternalServices.Exceptions.Exceptions;
if (provider is null)
throw new CannotFindExternalServiceException("Email", configuredProvider);
if (response.TimedOut)
throw new ExternalServiceTimedOutException("Email", "The provider did not respond in time.");
if (!response.IsValid)
throw new InvalidResponseForExternalServiceException("Email", "The provider response was invalid.");
Namespaces
Types
- KamiSama.ExternalServices.Exceptions.Exceptions.CannotFindExternalServiceException - Represents a server error caused by the absence of a configured external service implementation. The service name and configuration value are retained as localization arguments.
- KamiSama.ExternalServices.Exceptions.Exceptions.ExternalServiceTimedOutException - Represents an external service operation that did not complete before its timeout. The service name and timeout details are retained as localization arguments.
- KamiSama.ExternalServices.Exceptions.Exceptions.InvalidResponseForExternalServiceException - Represents an invalid or unusable response returned by an external service. The service name and response details are retained as localization arguments.
| 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
- KamiSama.Chassis.HttpExceptions (>= 10.0.11.8)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on KamiSama.ExternalServices.Exceptions:
| Package | Downloads |
|---|---|
|
KamiSama.ExternalServices.Email.Core
Provider-selecting email registration for ASP.NET Core applications, including default-provider options and a built-in mock provider. Use it to route ISendEmail calls to keyed transport implementations. |
|
|
KamiSama.ExternalServices.Sms.Core
Provider-selecting SMS registration for ASP.NET Core applications, including default-provider options and a scoped mock provider. Use it to route unkeyed ISendSms calls to scoped keyed providers. |
GitHub repositories
This package is not used by any popular GitHub repositories.