GH-841 Add support for propagating errors from AWS Custom Runtime

Resolves #841
This commit is contained in:
Oleg Zhurakousky
2022-04-20 19:56:36 +02:00
parent 16484ec825
commit 6569c0a2e9
3 changed files with 48 additions and 17 deletions

View File

@@ -21,6 +21,9 @@ public class LambdaApplication
public Function<String, String> uppercase() {
return value -> {
logger.info("Processing: " + value);
if (value.equals("error")) {
throw new IllegalArgumentException("Intentional");
}
return value.toUpperCase();
};
}