Skip to content

Custom error handling in .NET6 #1019

Closed
Closed
@thoma01

Description

@thoma01

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

In the releases of v6.x.x of this package, IErrorResponseProvider was removed in favor of ProblemDetails.

All the examples show how to .AddProblemDetails() but unfortunately, they all target .NET7.

How is this supposed to be handled in .NET6? I need to be able to support backwards compatibility for my error messages, but this change does not really explain how to achieve this?

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

6

Anything else?

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions