Leosac
0.8.0
Open Source Access Control
|
This class is dedicated to converting exception thrown by various code into a ServerMessage that can be sent back to a websocket client. More...
#include <ExceptionConverter.hpp>
Public Member Functions | |
ServerMessage | convert_merge (const std::exception_ptr &ptr, const ServerMessage &msg) |
Convert the exception_ptr to a ServerMessage and merge it with an other message. More... | |
Private Member Functions | |
virtual ServerMessage | convert_impl (const std::exception_ptr &ptr) |
This class is dedicated to converting exception thrown by various code into a ServerMessage that can be sent back to a websocket client.
Definition at line 35 of file ExceptionConverter.hpp.
|
privatevirtual |
Definition at line 61 of file ExceptionConverter.cpp.
ServerMessage ExceptionConverter::convert_merge | ( | const std::exception_ptr & | ptr, |
const ServerMessage & | msg | ||
) |
Convert the exception_ptr to a ServerMessage and merge it with an other message.
ptr | |
msg | The "current" message. We will copy type/uuid from it. |
Definition at line 33 of file ExceptionConverter.cpp.