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

feat(TCOMP-2408): all causes of ComponentException are Exception.class #706

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

ypiel-talend
Copy link
Contributor

Requirements

  • Any code change adding any logic MUST be tested through a unit test executed with the default build
  • Any API addition MUST be done with a documentation update if relevant

Why this PR is needed?

https://jira.talendforge.org/browse/TCOMP-2408

What does this PR adds (design/code thoughts)?

All cause exceptions are transformed to Exception.class to be known by all runtimes.

@ypiel-talend ypiel-talend force-pushed the ypiel/TCOMP-2408_ComponentException_only_ExceptionCause branch from 34fdc82 to 661d858 Compare June 10, 2024 14:32
@ypiel-talend ypiel-talend requested a review from undx June 10, 2024 14:35
undx
undx previously approved these changes Jun 26, 2024

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link
Member

@undx undx left a comment

Choose a reason for hiding this comment

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

Some comments.
Also, I don't understand the new connector added to module sample-parent purpose...
Could you explain why adding another connector in the context of this pull-request?
(seen the GenerateExeceptionService but don't see the usage)

sample-parent/tck-validator/pom.xml Outdated Show resolved Hide resolved
@@ -0,0 +1,2 @@
= A tck sample Family
Copy link
Member

Choose a reason for hiding this comment

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

purpose?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Used in the Test case, discussed with Axel, or, only used in test case, not commit?

componentException = new ComponentException(ComponentException.ErrorOrigin.USER, "message");
Assertions.assertEquals(ComponentException.ErrorOrigin.USER, componentException.getErrorOrigin());
}

Copy link
Member

Choose a reason for hiding this comment

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

You could also inspire you from InvocationExceptionWrapperTest class...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Line 62-66 is hard to execute into...

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@acatoire acatoire requested a review from undx August 5, 2024 12:44
Copy link
Member

@undx undx left a comment

Choose a reason for hiding this comment

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

As said in daily, please integrate relevant changes in existing sample connector.

This comment has been minimized.

Copy link

sonar-eks bot commented Aug 8, 2024

Passed

Analysis Details

2 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 2 Code Smells

Coverage and Duplications

  • Coverage 96.15% Coverage (54.70% Estimated after merge)
  • Duplications 0.00% Duplicated Code (1.30% Estimated after merge)

Project ID: org.talend.sdk.component:component-runtime

View in SonarQube

Copy link
Contributor

@acatoire acatoire left a comment

Choose a reason for hiding this comment

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

why did you add a new icon?

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.

None yet

4 participants