Skip to content

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.

3 participants