EXCSLA.Shared.Core.Exceptions
5.3.1
dotnet add package EXCSLA.Shared.Core.Exceptions --version 5.3.1
NuGet\Install-Package EXCSLA.Shared.Core.Exceptions -Version 5.3.1
<PackageReference Include="EXCSLA.Shared.Core.Exceptions" Version="5.3.1" />
<PackageVersion Include="EXCSLA.Shared.Core.Exceptions" Version="5.3.1" />
<PackageReference Include="EXCSLA.Shared.Core.Exceptions" />
paket add EXCSLA.Shared.Core.Exceptions --version 5.3.1
#r "nuget: EXCSLA.Shared.Core.Exceptions, 5.3.1"
#:package EXCSLA.Shared.Core.Exceptions@5.3.1
#addin nuget:?package=EXCSLA.Shared.Core.Exceptions&version=5.3.1
#tool nuget:?package=EXCSLA.Shared.Core.Exceptions&version=5.3.1
EXCSLA.Shared.Core.Exceptions
Custom domain exception classes for the EXCSLA DDD framework.
Overview
Provides a hierarchy of domain-specific exceptions used throughout the EXCSLA framework for clear error handling and reporting.
Exception Types
- DomainException - Base exception for domain logic violations
- InvalidSpecificationException - Raised when specification criteria are invalid
- RepositoryException - Raised for repository operation failures
- InvalidEntityException - Raised for invalid entity state
Installation
dotnet add package EXCSLA.Shared.Core.Exceptions
Usage
public class Order : AggregateRoot
{
public void Cancel()
{
if (Status == OrderStatus.Completed)
{
throw new DomainException("Cannot cancel completed order");
}
Status = OrderStatus.Cancelled;
}
}
Dependencies
- .NET 10.0 or higher
License
See LICENSE file in repository
Support
For issues and questions, visit the GitHub repository
| 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
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on EXCSLA.Shared.Core.Exceptions:
| Package | Downloads |
|---|---|
|
EXCSLA.Shared.Core.ValueObjects.Common
Common Value Objects found in many domains. Such as Name, Email, Phone Number, etc. |
|
|
EXCSLA.Shared.Core.GuardClauses
Guard Clauses orginally created by Steve (Ardalis) Smith. This project adds additional guard clauses used in EXCSLA.Shared.Core. These guard clauses are meant to be used with the EXCSLA.Shared framework. |
|
|
EXCSLA.Shared.Core.ValueObjects
Common Value Objects found in many domains. Such as Name, Email, Phone Number, etc. |
GitHub repositories
This package is not used by any popular GitHub repositories.