MCPcopy Create free account
hub / github.com/ByConity/ByConity / tryCall

Function tryCall

src/Access/IAccessStorage.cpp:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45 template <typename Func>
46 bool tryCall(const Func & function)
47 {
48 try
49 {
50 function();
51 return true;
52 }
53 catch (...)
54 {
55 return false;
56 }
57 }
58
59
60 class ErrorsTracker

Callers 3

tryInsertMethod · 0.85
tryRemoveMethod · 0.85
tryUpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected