Added top level exception handlers (try-catch) at:
Instantiating handlers (boost::interprocess might throw exception like bad_alloc, some constructors might throw exceptions)
Initializing shared memory (same as above)
map operations (same as above)
This PR also replaces almost all asserts in runtime with throw std::runtime_error (Most of asserts are in constructors of handlers or maps, so if they were replaced with throws, we could catch whem when instantiating handlers or creating maps)
Added top level exception handlers (try-catch) at:
This PR also replaces almost all asserts in runtime with throw std::runtime_error (Most of asserts are in constructors of handlers or maps, so if they were replaced with throws, we could catch whem when instantiating handlers or creating maps)