GH-841 Add support for propagating errors from AWS Custom Runtime
Resolves #841
This commit is contained in:
@@ -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();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user