You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If inside of a controller I return a StatusCode(400, "You missed something")
I will get a ProblemDetails object with a detail property with value "You missed something".
But most of my business logic is inside services. Is there any way to throw some kind of custom exception that generates a ProblemDetail object with the detail value in production? So I can show to the client user a readable reason of the failure?
Thanks
The text was updated successfully, but these errors were encountered:
If inside of a controller I return a StatusCode(400, "You missed something")
I will get a ProblemDetails object with a detail property with value "You missed something".
But most of my business logic is inside services. Is there any way to throw some kind of custom exception that generates a ProblemDetail object with the detail value in production? So I can show to the client user a readable reason of the failure?
Thanks
The text was updated successfully, but these errors were encountered: