Skip to content
Snippets Groups Projects
Commit fd9290fc authored by René Schöne's avatar René Schöne
Browse files

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!39Version 1.1.0,!35Version 1.0.0,!17Version 0.3.2,!8Version 0.3.1
......@@ -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}}
......
......@@ -17,6 +17,11 @@ aspect RagConnect {
{{> sendDefinition}}
{{/TypeSendDefinitions}}
class RagConnectRejectMappingException extends RuntimeException {}
private static void ASTNode.reject() {
throw new RagConnectRejectMappingException();
}
{{#MappingDefinitions}}
{{#isUsed}}
{{> mappingDefinition}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment