Releases: wintoncode/Winton.DomainModelling.Abstractions
Releases · wintoncode/Winton.DomainModelling.Abstractions
2.0.0
1.4.0
New Features
- New
ConflictError
extendingError
to indicate the action cannot be completed due to the existence of a conflicting entity.
1.3.0
New Features
- Added
Catch
method toResult
as a counter toThen
to make it simpler to handle errors by allowing the client to use theError
to generate a differentResult
. - Added
OnFailure
toResult
as a counter toOnSuccess
to make it simple to take an action on aFailure
. - Added
SelectError
toResult
as a counter toSelect
to 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
DomainException
and all sub-classes.Result<TData>
should be used now and in the case of a failure aFailure<TData>
which contains an appropriateError
should be returned as the concrete result.