src/Error.cc
author nireco
Sat, 31 Jan 2009 12:33:08 +0200
changeset 443 5d1119729f58
parent 227 39cd6861e43e
permissions -rw-r--r--
worm02 two pics to comment
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