-
Notifications
You must be signed in to change notification settings - Fork 52
chore(QTDI-1484):Add documentation for QTDI-1305 Improve error handling #1045
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
base: master
Are you sure you want to change the base?
Conversation
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
documentation/src/main/antora/modules/ROOT/pages/index-creating-components.adoc
Outdated
Show resolved
Hide resolved
documentation/src/main/antora/modules/ROOT/pages/component-record.adoc
Outdated
Show resolved
Hide resolved
documentation/src/main/antora/modules/ROOT/pages/component-record.adoc
Outdated
Show resolved
Hide resolved
documentation/src/main/antora/modules/ROOT/pages/component-record.adoc
Outdated
Show resolved
Hide resolved
documentation/src/main/antora/modules/ROOT/pages/component-record.adoc
Outdated
Show resolved
Hide resolved
documentation/src/main/antora/modules/ROOT/pages/component-record.adoc
Outdated
Show resolved
Hide resolved
documentation/src/main/antora/modules/ROOT/pages/component-record.adoc
Outdated
Show resolved
Hide resolved
documentation/src/main/antora/modules/ROOT/pages/component-record.adoc
Outdated
Show resolved
Hide resolved
documentation/src/main/antora/modules/ROOT/pages/component-record.adoc
Outdated
Show resolved
Hide resolved
documentation/src/main/antora/modules/ROOT/pages/component-record.adoc
Outdated
Show resolved
Hide resolved
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.
Few comments.
documentation/src/main/antora/modules/ROOT/pages/component-record.adoc
Outdated
Show resolved
Hide resolved
documentation/src/main/antora/modules/ROOT/pages/component-record.adoc
Outdated
Show resolved
Hide resolved
|
||
|
||
=== Connector Implementation | ||
To support it, the input component call EntryImpl.BuilderImpl..withErrorCapable(true), and builder.with() API as the following code did: |
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.
double '.' BuilderImpl..withErrorCapable
String errorMessage = ageEntry.getErrorMessage(); | ||
String errorFallbackValue = ageEntry.getErrorFallbackValue(); | ||
// Do something with the error value, error message, and error fallback value. | ||
Integer age = record.get(Integer.class, "age"); |
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.
Inform that when you retrieve the value of an entry in error, it will returns null. In the example 'age' is null.
…tries
Requirements
Why this PR is needed?
What does this PR adds (design/code thoughts)?