asio::system_error Class Reference

#include <system_error.hpp>

List of all members.

Public Member Functions

 system_error (const error_code &code)
 Construct with an error code.
 system_error (const error_code &code, const std::string &context)
 Construct with an error code and context.
 system_error (const system_error &other)
 Copy constructor.
virtual ~system_error () throw ()
 Destructor.
system_erroroperator= (const system_error &e)
 Assignment operator.
virtual const char * what () const throw ()
 Get a string representation of the exception.
error_code code () const
 Get the error code associated with the exception.

Private Attributes

error_code code_
std::string context_
boost::scoped_ptr< std::string > what_


Detailed Description

The system_error class is used to represent system conditions that prevent the library from operating correctly.

Definition at line 34 of file system_error.hpp.


Constructor & Destructor Documentation

asio::system_error::system_error ( const error_code code  )  [inline]

Construct with an error code.

Definition at line 39 of file system_error.hpp.

asio::system_error::system_error ( const error_code code,
const std::string &  context 
) [inline]

Construct with an error code and context.

Definition at line 46 of file system_error.hpp.

asio::system_error::system_error ( const system_error other  )  [inline]

Copy constructor.

Definition at line 53 of file system_error.hpp.

virtual asio::system_error::~system_error (  )  throw () [inline, virtual]

Destructor.

Definition at line 62 of file system_error.hpp.


Member Function Documentation

system_error& asio::system_error::operator= ( const system_error e  )  [inline]

Assignment operator.

Definition at line 67 of file system_error.hpp.

References code_, context_, and what_.

virtual const char* asio::system_error::what (  )  const throw () [inline, virtual]

Get a string representation of the exception.

Definition at line 76 of file system_error.hpp.

References code_, context_, asio::error_code::message(), and what_.

Referenced by libtorrent::aux::session_impl::open_listen_port().

error_code asio::system_error::code (  )  const [inline]


Member Data Documentation

Definition at line 104 of file system_error.hpp.

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

std::string asio::system_error::context_ [private]

Definition at line 107 of file system_error.hpp.

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

boost::scoped_ptr<std::string> asio::system_error::what_ [mutable, private]

Definition at line 110 of file system_error.hpp.

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


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

Generated on Sun May 25 00:21:30 2008 by  doxygen 1.5.6