You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
1. Is this request related to a challenge you're experiencing? Tell me about your story.
In order to improve the clarity and maintainability of exception handling in our workflow nodes, the following changes are proposed:
Create Specific Error Types for Each Node: Define unique error types for individual nodes to avoid using generic exceptions such as ValueError. This change will help in distinguishing different failure scenarios more precisely.
Return NodeRunResult with Exception Details: When possible, return a NodeRunResult that includes comprehensive exception information rather than raising uncategorized exceptions without context. This approach provides better context for error handling and improves debugging and traceability throughout the workflow.
Implementing these changes will contribute to more robust error handling, enhancing both developer experience and system reliability.
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
In order to improve the clarity and maintainability of exception handling in our workflow nodes, the following changes are proposed:
Create Specific Error Types for Each Node: Define unique error types for individual nodes to avoid using generic exceptions such as
ValueError
. This change will help in distinguishing different failure scenarios more precisely.Return NodeRunResult with Exception Details: When possible, return a
NodeRunResult
that includes comprehensive exception information rather than raising uncategorized exceptions without context. This approach provides better context for error handling and improves debugging and traceability throughout the workflow.Implementing these changes will contribute to more robust error handling, enhancing both developer experience and system reliability.
2. Additional context or comments
3. Can you help us with this feature?
The text was updated successfully, but these errors were encountered: