Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
websocketpp::exception Class Reference

#include <error.hpp>

Inheritance diagram for websocketpp::exception:
Collaboration diagram for websocketpp::exception:

Public Member Functions

 exception (std::string const &msg, lib::error_code ec=make_error_code(error::general))
 
 exception (lib::error_code ec)
 
 ~exception () throw ()
 
virtual char const * what () const throw ()
 
lib::error_code code () const throw ()
 

Public Attributes

const std::string m_msg
 
lib::error_code m_code
 

Detailed Description

Definition at line 251 of file error.hpp.

Constructor & Destructor Documentation

◆ exception() [1/2]

websocketpp::exception::exception ( std::string const & msg,
lib::error_code ec = make_error_code(error::general) )
inline

Definition at line 253 of file error.hpp.

254 : m_msg(msg.empty() ? ec.message() : msg), m_code(ec)
255 {}
const std::string m_msg
Definition error.hpp:271
lib::error_code m_code
Definition error.hpp:272

◆ exception() [2/2]

websocketpp::exception::exception ( lib::error_code ec)
inlineexplicit

Definition at line 257 of file error.hpp.

258 : m_msg(ec.message()), m_code(ec)
259 {}

◆ ~exception()

websocketpp::exception::~exception ( )
throw ( )
inline

Definition at line 261 of file error.hpp.

261{}

Member Function Documentation

◆ code()

lib::error_code websocketpp::exception::code ( ) const
throw ( )
inline

Definition at line 267 of file error.hpp.

267 {
268 return m_code;
269 }
Here is the caller graph for this function:

◆ what()

virtual char const * websocketpp::exception::what ( ) const
throw ( )
inlinevirtual

Definition at line 263 of file error.hpp.

263 {
264 return m_msg.c_str();
265 }
Here is the caller graph for this function:

Member Data Documentation

◆ m_code

lib::error_code websocketpp::exception::m_code

Definition at line 272 of file error.hpp.

◆ m_msg

const std::string websocketpp::exception::m_msg

Definition at line 271 of file error.hpp.


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