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
......@@ -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}}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment