-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Code
-
None
-
Fully Compatible
-
Platform 1 04/03/15
i.e. a Lippincott function
example
Status myFunc() { try { funcThatThrows(); return Status::OK(); } catch (...) { return ExceptionToStatus(); } }
Then ExceptionToStatus() looks like:
Status ExceptionToStatus() { try { throw; } catch (const DBException& ex) { return Status(...) } catch (const std::exception& ex) { ..... } ..... }