Skip to content

Conversation

@preethi29
Copy link
Contributor

This PR creates a helper to set unexpected as true in PreconditionFailed error. PreconditionFailed are treated as expected errors by default and hence logged with warn severity.

This helper would be used in scenarios where we would like to alert when entities are not in a correct state in the server for the requested operation from the caller and treat those as unexpected.
Discussion context

@preethi29 preethi29 marked this pull request as ready for review August 4, 2025 08:42
@preethi29 preethi29 merged commit 37a0a4a into master Aug 4, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants