Releases: mt89vein/Sstv.DomainExceptions
Releases · mt89vein/Sstv.DomainExceptions
3.1.0
[3.1.0] - 2025-04-02
Added
- Added Microsoft.CodeAnalysis.PublicApiAnalyzers to control shipped API
- Allow to filter additional data from domain exception that will be added to ProblemDetails. Specify DomainExceptionSettings.AdditionalDataResponseIncludingFilter.
Fixed
- DetailedMessage from DomainException not passed to ProblemDetails response
Backport bug fixes and features from 3.1.0 to 2.3.0
[2.4.0] - 2025-04-02
Added
- Allow to filter additional data from domain exception that will be added to ProblemDetails. Specify DomainExceptionSettings.AdditionalDataResponseIncludingFilter.
Fixed
- DetailedMessage from DomainException not passed to ProblemDetails response
Error criticality level support
Changes:
- CriticalityLevel added to [ErrorDescription], also added to metric label, logs, api response. So you can use it to differ codes by its error criticality level.
BREAKING CHANGES:
- Dropped field "IsObsolete" on [ErrorDescription]
- ErrorCodesMeter now accept ErrorDescription and instance of error, instead of DomainException. This helps to use not only exceptions, but also Result pattern.
- error_codes_total metric now have level label from error code
- DomainExceptionSettings.OnExceptionCreated replaced by DomainExceptionSettings.OnErrorCreated callback
Upgrade to .NET 9 and error criticality level support
Changes:
- Update to .NET 9
- CriticalityLevel added to [ErrorDescription], also added to metric label, logs, api response. So you can use it to differ codes by its error criticality level.
- DomainException that generated by source generators now uses FrozenDictionary for internal error codes cache
BREAKING CHANGES:
- Serilog dependency upgraded to 4.1.0
- OpenTelemetry.Api dependency upgraded to 1.10.0
- No more replace Microsoft.AspNetCore.Http.DefaultProblemDetailsWriter by Rfc7231ProblemDetailsWriter. Bug dotnet/aspnetcore#52577 was fixed
- Dropped support of any .NET lower than .NET 9
- Dropped field "IsObsolete" on [ErrorDescription]
- ErrorCodesMeter now accept ErrorDescription and instance of error, instead of DomainException. This helps to use not only exceptions, but also Result pattern.
- error_codes_total metric now has level label from error code
- DomainExceptionSettings.OnExceptionCreated replaced by DomainExceptionSettings.OnErrorCreated callback
Add ProblemDetails support
fix: OnExceptionCreated as Multicast delegate
feat: Add options to configure generated exception
- Adds [ExceptionConfig] attribute, for configuring the name of generated exception.
- Exception now generated as partial class
- AsException extensions method renamed to ToException
Source generators release
Initial release
Initial release. Look changelogs files for details: