Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
RagConnect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
RagConnect
Commits
fd9290fc
Commit
fd9290fc
authored
4 years ago
by
René Schöne
Browse files
Options
Downloads
Patches
Plain Diff
add untested way to reject (i.e., discard) a value to be send
parent
ae4848c1
No related branches found
No related tags found
4 merge requests
!39
Version 1.1.0
,
!35
Version 1.0.0
,
!17
Version 0.3.2
,
!8
Version 0.3.1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ragconnect.base/src/main/resources/mappingApplication.mustache
+3
-0
3 additions, 0 deletions
...nnect.base/src/main/resources/mappingApplication.mustache
ragconnect.base/src/main/resources/ragconnect.mustache
+5
-0
5 additions, 0 deletions
ragconnect.base/src/main/resources/ragconnect.mustache
with
8 additions
and
0 deletions
ragconnect.base/src/main/resources/mappingApplication.mustache
+
3
−
0
View file @
fd9290fc
...
...
@@ -3,6 +3,9 @@ try {
{{#
InnerMappingDefinitions
}}
{{^
last
}}{{
toType
}}
{{/
last
}}{{
outputVarName
}}
=
{{
methodName
}}
(
{{
inputVarName
}}
);
{{/
InnerMappingDefinitions
}}
} catch (RagConnectRejectMappingException e) {
// do not print message in case of rejection
{{
preemptiveReturn
}}
} catch (Exception e) {
e.printStackTrace();
{{
preemptiveReturn
}}
...
...
This diff is collapsed.
Click to expand it.
ragconnect.base/src/main/resources/ragconnect.mustache
+
5
−
0
View file @
fd9290fc
...
...
@@ -17,6 +17,11 @@ aspect RagConnect {
{{>
sendDefinition
}}
{{/
TypeSendDefinitions
}}
class RagConnectRejectMappingException extends RuntimeException {}
private static void ASTNode.reject() {
throw new RagConnectRejectMappingException();
}
{{#
MappingDefinitions
}}
{{#
isUsed
}}
{{>
mappingDefinition
}}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment