| author | Tero Marttila <terom@fixme.fi> |
| Mon, 26 Jan 2009 19:50:52 +0200 | |
| branch | console_gui |
| changeset 429 | a86c7c486b14 |
| parent 400 | d64bf28c4340 |
| permissions | -rw-r--r-- |
| 380 | 1 |
#ifndef NETWORK_ERROR_HH |
2 |
#define NETWORK_ERROR_HH |
|
3 |
||
|
400
d64bf28c4340
more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents:
380
diff
changeset
|
4 |
/** |
|
d64bf28c4340
more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents:
380
diff
changeset
|
5 |
* @file |
|
d64bf28c4340
more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents:
380
diff
changeset
|
6 |
* |
|
d64bf28c4340
more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents:
380
diff
changeset
|
7 |
* Base classes for shared errno-enabled errors |
|
d64bf28c4340
more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents:
380
diff
changeset
|
8 |
*/ |
|
d64bf28c4340
more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
Tero Marttila <terom@fixme.fi>
parents:
380
diff
changeset
|
9 |
|
| 380 | 10 |
#include "../Error.hh" |
11 |
||
12 |
/** |
|
13 |
* An error class that appends the current value of errno as an error message |
|
14 |
* |
|
15 |
* <op>: <strerror> |
|
16 |
*/ |
|
17 |
class NetworkErrno : public Error {
|
|
18 |
protected: |
|
19 |
static std::string build_str (std::string op, int err); |
|
20 |
||
21 |
public: |
|
22 |
int err; |
|
23 |
||
24 |
NetworkErrno (std::string op); |
|
25 |
}; |
|
26 |
||
27 |
#endif |