MCPcopy Create free account
hub / github.com/catboost/catboost / ExceptionBoundary

Function ExceptionBoundary

library/cpp/openssl/method/io.cpp:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17 template<class T, class Callable, class... Args>
18 T ExceptionBoundary(BIO* bio, Callable&& f, T err, Args&&... args) noexcept {
19 try {
20 return (IO(bio)->*f)(args...);
21 } catch (...) {
22 return err;
23 }
24 }
25
26 int Write(BIO* bio, const char* data, int dlen) noexcept {
27 return ExceptionBoundary(bio, &TAbstractIO::WriteOld, -1, data, dlen);

Callers 5

WriteFunction · 0.85
ReadFunction · 0.85
PutsFunction · 0.85
GetsFunction · 0.85
CtrlFunction · 0.85

Calls 1

IOFunction · 0.85

Tested by

no test coverage detected