ircproxy  The Ultimate Cyborg

FatalError Class Reference

#include <exceptions.h>

Inheritance diagram for FatalError:

List of all members.


Detailed Description

An exception class.

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.
FatalErroroperator= (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.

Constructor & Destructor Documentation

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]

Virtual destructor.

Definition at line 53 of file exceptions.h.

00053 { }


Member Function Documentation

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(); }


Member Data Documentation

std::string FatalError::M_message [private]

The actual error message string.

Definition at line 48 of file exceptions.h.

Referenced by operator=(), and what().


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

Copyright © 2005-2007 Carlo Wood.  All rights reserved.