Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom NotFoundException error message #349

Closed
nsosoares opened this issue Jun 22, 2024 · 2 comments
Closed

Add custom NotFoundException error message #349

nsosoares opened this issue Jun 22, 2024 · 2 comments

Comments

@nsosoares
Copy link

nsosoares commented Jun 22, 2024

I would like to add a custom message to NotFoundException as sometimes it is necessary to customize a message for business reasons and another language. Do you find it interesting?

@ardalis
Copy link
Owner

ardalis commented Jun 23, 2024

Support for this is coming; I think it will be in the next release.

However, I recommend watching this as it sounds like you may be confusing validation with guard clauses:

https://youtu.be/dpPcnAT7n7M?si=fALnlVrJElJKsQbR

@nsosoares
Copy link
Author

Yes, I will watch, thank you very much for the answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants