MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / failure

Method failure

src/runtime.cpp:523–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523AWS_LAMBDA_RUNTIME_API
524invocation_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

Callers

nothing calls this directly

Calls 1

json_escapeFunction · 0.85

Tested by

no test coverage detected