GH-789 Propagate AWS FunctionInvoker exceptions
They will be handled by the AWS runtime and properly reported and recorded. Resolves #789
This commit is contained in:
@@ -21,7 +21,7 @@ public class FunctionConfiguration {
|
||||
public Function<String, String> uppercase() {
|
||||
return value -> {
|
||||
if (value.equals("exception")) {
|
||||
throw new RuntimeException("Intentional exception which should result in HTTP 417");
|
||||
throw new RuntimeException("Intentional exception");
|
||||
}
|
||||
else {
|
||||
return value.toUpperCase();
|
||||
|
||||
Reference in New Issue
Block a user