Zappy Server
C++ game server: world, rules, scheduler, network
Loading...
Searching...
No Matches
ListenerException Class Reference

#include <Listener.hpp>

+ Inheritance diagram for ListenerException:
+ Collaboration diagram for ListenerException:

Public Member Functions

 ListenerException (const std::string &message)
 Construct exception with error message.
 
const char * what () const noexcept override
 Get the error message.
 

Private Attributes

std::string _message
 

Detailed Description

Definition at line 6 of file Listener.hpp.

Constructor & Destructor Documentation

◆ ListenerException()

ListenerException::ListenerException ( const std::string &  message)
inlineexplicit

Construct exception with error message.

Parameters
messageDescription of the error

Definition at line 12 of file Listener.hpp.

Member Function Documentation

◆ what()

const char * ListenerException::what ( ) const
inlineoverridenoexcept

Get the error message.

Returns
C-string containing the error description

Definition at line 18 of file Listener.hpp.

References _message.

Member Data Documentation

◆ _message

std::string ListenerException::_message
private

Definition at line 21 of file Listener.hpp.

Referenced by what().


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