Releases: wintoncode/Winton.DomainModelling.Abstractions
Releases · wintoncode/Winton.DomainModelling.Abstractions
2.0.0
1.4.0
New Features
- New
ConflictErrorextendingErrorto indicate the action cannot be completed due to the existence of a conflicting entity.
1.3.0
New Features
- Added
Catchmethod toResultas a counter toThento make it simpler to handle errors by allowing the client to use theErrorto generate a differentResult. - Added
OnFailuretoResultas a counter toOnSuccessto make it simple to take an action on aFailure. - Added
SelectErrortoResultas a counter toSelectto make it simpler to project errors to a different format in the case of aFailure.
1.2.0
New Features
- Added
Result<TData>to allow domain operations to return errors instead of throwing exceptions.
Deprecations (Will be removed in 2.0)
- Deprecated
DomainExceptionand all sub-classes.Result<TData>should be used now and in the case of a failure aFailure<TData>which contains an appropriateErrorshould be returned as the concrete result.