8000 Add Support for Custom Errors by mitchspano · Pull Request #40 · google/flow-lens · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add Support for Custom Errors #40

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

Merged
merged 6 commits into from
Mar 27, 2025
Merged

Add Support for Custom Errors #40

merged 6 commits into from
Mar 27, 2025

Conversation

mitchspano
Copy link
Collaborator

Fixes #39

- Update all enum values in flow_types.ts to use double quotes for string literals, ensuring consistency across the file.
- Introduce FlowCustomError and FlowCustomErrorMessage interfaces to enhance error handling capabilities within the flow structure.
- Introduce support for FlowCustomError in flow_parser.ts, enhancing the flow structure with custom error handling capabilities.
- Update ParsedFlow interface to include customErrors and ensure proper parsing of custom error nodes.
- Implement isCustomError function to identify custom error nodes during flow processing.
- Enhance UmlGenerator to process FlowCustomError nodes, generating UML representations that include custom error details.
- Implement methods to create inner node content for FlowCustomError, including error messages and descriptions.
- Add tests to validate the correct generation of UML for FlowCustomError nodes, ensuring accurate representation of error details in the output.
- Introduce ERROR icon in GraphViz, Mermaid, and PlantUML generators to represent error states visually.
- Update UML generation logic to utilize the new ERROR icon for FlowCustomError nodes, enhancing clarity in generated diagrams.
- Ensure consistent representation of error states across all UML generation formats.
- Change color representation for custom error nodes from NONE to NAVY for better visibility.
- Modify inner node content structure to include "Error Messages:" as a label, enhancing clarity in UML output.
- Adjust test expectations to reflect the updated format and content of generated UML for custom errors.
@mitchspano mitchspano merged commit 20b7cee into main Mar 27, 2025
2 checks passed
@mitchspano mitchspano deleted the custom_error branch March 27, 2025 04:57
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.

Fails to Map Custom Error
1 participant
0