-
Notifications
You must be signed in to change notification settings - Fork 48
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
base: master
Are you sure you want to change the base?
feat(TCOMP-2408): all causes of ComponentException are Exception.class #706
Conversation
component-api/src/main/java/org/talend/sdk/component/api/exception/ComponentException.java
Outdated
Show resolved
Hide resolved
34fdc82
to
661d858
Compare
…' of [email protected]:Talend/component-runtime.git into ypiel/TCOMP-2408_ComponentException_only_ExceptionCause
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.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this 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)
@@ -0,0 +1,2 @@ | |||
= A tck sample Family |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
purpose?
There was a problem hiding this comment.
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?
component-api/src/main/java/org/talend/sdk/component/api/exception/ComponentException.java
Show resolved
Hide resolved
componentException = new ComponentException(ComponentException.ErrorOrigin.USER, "message"); | ||
Assertions.assertEquals(ComponentException.ErrorOrigin.USER, componentException.getErrorOrigin()); | ||
} | ||
|
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
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.
There was a problem hiding this 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.
This comment has been minimized.
Analysis Details2 IssuesCoverage and DuplicationsProject ID: org.talend.sdk.component:component-runtime |
There was a problem hiding this 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?
Requirements
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.