author | Tero Marttila <terom@fixme.fi> |
Fri, 16 Jan 2009 21:24:45 +0200 | |
changeset 399 | c7295b72731a |
parent 380 | d193dd1d8a7e |
child 400 | d64bf28c4340 |
permissions | -rw-r--r-- |
380 | 1 |
#ifndef NETWORK_ERROR_HH |
2 |
#define NETWORK_ERROR_HH |
|
3 |
||
4 |
#include "../Error.hh" |
|
5 |
||
6 |
/** |
|
7 |
* An error class that appends the current value of errno as an error message |
|
8 |
* |
|
9 |
* <op>: <strerror> |
|
10 |
*/ |
|
11 |
class NetworkErrno : public Error { |
|
12 |
protected: |
|
13 |
static std::string build_str (std::string op, int err); |
|
14 |
||
15 |
public: |
|
16 |
int err; |
|
17 |
||
18 |
NetworkErrno (std::string op); |
|
19 |
}; |
|
20 |
||
21 |
#endif |