| 521 | } |
| 522 | |
| 523 | AWS_LAMBDA_RUNTIME_API |
| 524 | invocation_response invocation_response::failure(std::string const& error_message, std::string const& error_type) |
| 525 | { |
| 526 | invocation_response r; |
| 527 | r.m_success = false; |
| 528 | r.m_content_type = "application/json"; |
| 529 | r.m_payload = R"({"errorMessage":")" + json_escape(error_message) + R"(","errorType":")" + json_escape(error_type) + |
| 530 | R"(", "stackTrace":[]})"; |
| 531 | return r; |
| 532 | } |
| 533 | |
| 534 | } // namespace lambda_runtime |
| 535 | } // namespace aws |
nothing calls this directly
no test coverage detected