open62541pp 0.15.0
C++ wrapper of open62541
|
#include <exceptioncatcher.hpp>
Catch & store exceptions from user-defined callbacks in an exception-unaware context (open62541).
The stored exception can be rethrown in a different context.
Definition at line 13 of file exceptioncatcher.hpp.
Public Member Functions | |
void | setException (std::exception_ptr exception) noexcept |
bool | hasException () const noexcept |
void | rethrow () |
template<typename Callback , typename... Args> | |
void | invoke (Callback &&callback, Args &&... args) noexcept |
template<typename Callback > | |
auto | wrapCallback (Callback &&callback) noexcept |
|
inlinenoexcept |
Definition at line 15 of file exceptioncatcher.hpp.
Referenced by invoke().
|
inlinenoexcept |
Definition at line 19 of file exceptioncatcher.hpp.
Referenced by rethrow().
|
inline |
Definition at line 23 of file exceptioncatcher.hpp.
|
inlinenoexcept |
Definition at line 30 of file exceptioncatcher.hpp.
Referenced by opcua::services::detail::CallbackAdapter::invoke(), and wrapCallback().
|
inlinenoexcept |
Definition at line 53 of file exceptioncatcher.hpp.