src/Error.cc
author Tero Marttila <terom@fixme.fi>
Tue, 27 Jan 2009 00:25:58 +0200
changeset 439 9823e6cd1086
parent 227 39cd6861e43e
permissions -rw-r--r--
some README text
227
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     1
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     2
#include "Error.hh"
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     3
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     4
std::ostream& operator<< (std::ostream &s, Error &e) {
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     5
    return s << e.what();
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     6
}
39cd6861e43e handle errors a bit more gracefully in NetworkTCP
terom
parents:
diff changeset
     7