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

#include <constants.hpp>

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

Public Member Functions

 exception (const std::string &log_msg, status_code::value error_code, const std::string &error_msg=std::string(), const std::string &body=std::string())
 
 ~exception () throw ()
 
virtual const char * what () const throw ()
 

Public Attributes

std::string m_msg
 
std::string m_error_msg
 
std::string m_body
 
status_code::value m_error_code
 

Detailed Description

Definition at line 283 of file constants.hpp.

Constructor & Destructor Documentation

◆ exception()

websocketpp::http::exception::exception ( const std::string & log_msg,
status_code::value error_code,
const std::string & error_msg = std::string(),
const std::string & body = std::string() )
inline

Definition at line 285 of file constants.hpp.

289 : m_msg(log_msg)
290 , m_error_msg(error_msg)
291 , m_body(body)
292 , m_error_code(error_code) {}
status_code::value m_error_code

◆ ~exception()

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

Definition at line 294 of file constants.hpp.

294{}

Member Function Documentation

◆ what()

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

Definition at line 296 of file constants.hpp.

296 {
297 return m_msg.c_str();
298 }

Member Data Documentation

◆ m_body

std::string websocketpp::http::exception::m_body

Definition at line 302 of file constants.hpp.

◆ m_error_code

status_code::value websocketpp::http::exception::m_error_code

Definition at line 303 of file constants.hpp.

◆ m_error_msg

std::string websocketpp::http::exception::m_error_msg

Definition at line 301 of file constants.hpp.

◆ m_msg

std::string websocketpp::http::exception::m_msg

Definition at line 300 of file constants.hpp.


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