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

Exception enhancement #2418

Merged
merged 2 commits into from
Oct 3, 2024
Merged

Exception enhancement #2418

merged 2 commits into from
Oct 3, 2024

Conversation

MrHinsh
Copy link
Member

@MrHinsh MrHinsh commented Oct 3, 2024

Add new exception type that allows use to determine if it is a loggable error better....

For #2414 I also added validation for the Target Project name before trying to load the Area or Iteration nodes....

…ation testing

The project name in the configuration file is updated from "migrationTest5" to "migrationTest55" to reflect changes in the testing environment or project structure.

📝 (MigrationTools.xml): update documentation with new commit and version details
The XML documentation is updated to reflect the latest commit hash, commit date, and version tags, ensuring that the documentation is in sync with the current state of the codebase.

✨ (TfsNodeStructureTool.cs): add exception handling for project retrieval
Introduces a try-catch block to handle exceptions when retrieving project information, improving robustness by catching potential configuration errors and throwing a custom `MigrationToolsException`.

✨ (MigrationToolsException.cs): create custom exception class for migration tools
A new custom exception class `MigrationToolsException` is added to handle specific errors related to configuration and internal issues, providing a more structured error handling mechanism.

♻️ (Processor.cs): enhance error handling with custom exceptions
Refactors the error handling in the `Processor` class to include the newly created `MigrationToolsException`, allowing for more detailed logging and error tracking based on the source of the exception. This change improves the maintainability and debuggability of the code.
@nkdagility-actions-bot
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-river-093197403-2418.westeurope.5.azurestaticapps.net

@MrHinsh MrHinsh merged commit d589bdd into main Oct 3, 2024
15 checks passed
@MrHinsh MrHinsh deleted the topic/exception-enhancement branch October 3, 2024 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant