Leosac  0.8.0
Open Source Access Control
Leosac::Module::WebSockAPI::ExceptionConverter Class Reference

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)
 

Detailed Description

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.

Member Function Documentation

◆ convert_impl()

ServerMessage ExceptionConverter::convert_impl ( const std::exception_ptr &  ptr)
privatevirtual

Definition at line 61 of file ExceptionConverter.cpp.

◆ convert_merge()

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.

Parameters
ptr
msgThe "current" message. We will copy type/uuid from it.

Definition at line 33 of file ExceptionConverter.cpp.


The documentation for this class was generated from the following files: