9 #ifndef CPPCOMMON_ERRORS_EXCEPTIONS_HANDLER_H
10 #define CPPCOMMON_ERRORS_EXCEPTIONS_HANDLER_H
68 Impl& impl() noexcept {
return reinterpret_cast<Impl&
>(_storage); }
69 const Impl& impl() const noexcept {
return reinterpret_cast<Impl const&
>(_storage); }
71 static const size_t StorageSize = 72;
72 #if defined(unix) || defined(__unix) || defined(__unix__) || defined(__APPLE__)
73 static const size_t StorageAlign = 16;
75 static const size_t StorageAlign = 8;
77 alignas(StorageAlign) std::byte _storage[StorageSize];
ExceptionsHandler & operator=(ExceptionsHandler &&)=delete
ExceptionsHandler(ExceptionsHandler &&)=delete
static void SetupProcess()
Setup exceptions handler for the current process.
static void SetupHandler(const std::function< void(const SystemException &, const StackTrace &)> &handler)
Setup new global exceptions handler function.
static void SetupThread()
Setup exceptions handler for the current thread.
ExceptionsHandler & operator=(const ExceptionsHandler &)=delete
ExceptionsHandler(const ExceptionsHandler &)=delete
Singleton template base class.
Stack trace snapshot provider.
File system exceptions definition.
C++ Common project definitions.
Stack trace snapshot provider definition.