Files
Alex ShtinandGitHub a676fa47f8 Delete Namespace: clean up errors (#7029)
## What changed?
<!-- Describe what has changed in this PR -->
Clean up errors in delete namespace workflows:
1. Use `FailedPrecondition` instead of `InvalidArgument` where it makes
more sense.
2. Add helpers to construct `ApplicationError`s of different type.
3. Remove `unable to execute activity` error which was wrongly used in
many places.
4. Few minor cleanups.

## Why?
<!-- Tell your future self why have you made these changes -->
Simplify and unify error handling in delete namespace workflows.

## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
Modified tests. Manual runs.

## Potential risks
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->
No risks.

## Documentation
<!-- Have you made sure this change doesn't falsify anything currently
stated in `docs/`? If significant
new behavior is added, have you described that in `docs/`? -->
No.

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->
No.
2024-12-30 09:52:25 -08:00
..