MCPcopy Create free account
hub / github.com/apple/foundationdb / catch

Function catch

fdbrpc/HTTP.actor.cpp:509–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507
508 return r;
509 } catch (Error& e) {
510 double elapsed = timer() - send_start;
511 // A bad_request_id error would have already been logged in verbose mode before err is thrown above.
512 if (FLOW_KNOBS->HTTP_VERBOSE_LEVEL > 0 && e.code() != error_code_http_bad_request_id) {
513 printf("[%s] HTTP *ERROR*=%s early=%d, time=%fs %s %s contentLen=%d [%d out]\n",
514 conn->getDebugID().toString().c_str(),
515 e.name(),
516 earlyResponse,
517 elapsed,
518 verb.c_str(),
519 resource.c_str(),
520 contentLen,
521 total_sent);
522 }
523 event.errorUnsuppressed(e);
524 throw;
525 }
526}
527
528} // namespace HTTP

Callers

nothing calls this directly

Calls 7

printfFunction · 0.85
nameMethod · 0.65
timerFunction · 0.50
codeMethod · 0.45
c_strMethod · 0.45
toStringMethod · 0.45
getDebugIDMethod · 0.45

Tested by

no test coverage detected