asio 0.3.8rc3 | Home | Reference | Tutorial | Examples | Design

Reference | Class Hierarchy | Class Index | Member Index

# asio::system_error Class Reference

Inherits std::exception.

Inheritance diagram for asio::system_error:

List of all members.

## Detailed Description

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

## 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_error & | operator= (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.

## Constructor & Destructor Documentation

asio::system_error::system_error | ( | const error_code & | code | ) |

Construct with an error code.

asio::system_error::system_error | ( | const error_code & | code,
|  | const std::string & | context |
| ) |  |  |

Construct with an error code and context.

asio::system_error::system_error | ( | const system_error & | other | ) |

Copy constructor.

virtual asio::system_error::~system_error | ( |  | ) | throw ()`[virtual]`

Destructor.

## Member Function Documentation

system_error& asio::system_error::operator= | ( | const system_error & | e | ) |

Assignment operator.

virtual const char* asio::system_error::what | ( |  | ) | const throw ()`[virtual]`

Get a string representation of the exception.

error_code asio::system_error::code | ( |  | ) | const

Get the error code associated with the exception.

asio 0.3.8rc3 | Home | Reference | Tutorial | Examples | Design