Skip to content

feat: improve workflow error reporting #1613

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 1 commit into from
Nov 23, 2022
Merged

feat: improve workflow error reporting #1613

merged 1 commit into from
Nov 23, 2022

Conversation

metacosm
Copy link
Collaborator

No description provided.

@metacosm metacosm self-assigned this Nov 21, 2022
@metacosm metacosm requested a review from csviri November 21, 2022 15:14
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

82.1% 82.1% Coverage
0.0% 0.0% Duplication

Copy link
Collaborator

@csviri csviri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question / design decision to clarify other than that looks good.


public class AggregatedOperatorException extends OperatorException {

private final List<Exception> causes;
private final Map<String, Exception> causes;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the key String here? It could be DependentResource I guess.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exception is not necessarily meant only for workflow errors so the key could be anything identifying "what" caused that specific error so that user has some idea of what's going on.

@metacosm metacosm merged commit b226238 into main Nov 23, 2022
@metacosm metacosm deleted the improve-exception branch November 23, 2022 13:42
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.

2 participants