Skip to content

Releases: mt89vein/Sstv.DomainExceptions

3.1.0

02 Apr 18:36
15a3225

Choose a tag to compare

[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

02 Apr 18:31

Choose a tag to compare

[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

06 Dec 17:30

Choose a tag to compare

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

05 Dec 20:49

Choose a tag to compare

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

18 Feb 13:04

Choose a tag to compare

fix: OnExceptionCreated as Multicast delegate

14 Feb 08:08

Choose a tag to compare

feat: Add options to configure generated exception

12 Feb 18:31

Choose a tag to compare

  • 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

11 Feb 15:20

Choose a tag to compare

Initial release

04 Oct 19:26

Choose a tag to compare