ircproxy The Ultimate Cyborg |
#include <exceptions.h>
An object of this class is thrown in case a client message causes an unrecoverable error. The result is that the client is disconnected.
Definition at line 46 of file exceptions.h.
Public Member Functions | |
FatalError (std::string const &message) | |
Construct a FatalError instance with message string message. | |
virtual | ~FatalError () throw () |
Virtual destructor. | |
FatalError & | operator= (FatalError const &error) |
Assignment operator. | |
virtual char const * | what (void) const throw () |
Implementation of std::exception::what(). Returns the error message string. | |
Private Attributes | |
std::string | M_message |
The actual error message string. |
FatalError::FatalError | ( | std::string const & | message | ) | [inline] |
Construct a FatalError instance with message string message.
Definition at line 51 of file exceptions.h.
00051 : M_message(message) { }
virtual FatalError::~FatalError | ( | ) | throw () [inline, virtual] |
FatalError& FatalError::operator= | ( | FatalError const & | error | ) | [inline] |
Assignment operator.
Definition at line 55 of file exceptions.h.
References M_message.
00055 { M_message = error.M_message; return *this; }
virtual char const* FatalError::what | ( | void | ) | const throw () [inline, virtual] |
Implementation of std::exception::what(). Returns the error message string.
Definition at line 57 of file exceptions.h.
References M_message.
Referenced by ClientSession::process_message().
00057 { return M_message.c_str(); }
std::string FatalError::M_message [private] |
The actual error message string.
Definition at line 48 of file exceptions.h.
Referenced by operator=(), and what().
Copyright © 2005-2007 Carlo Wood. All rights reserved. |
---|