27 #ifndef NIDAS_UTIL_IOEXCEPTION_H
28 #define NIDAS_UTIL_IOEXCEPTION_H
35 namespace nidas {
namespace util {
51 IOException(
const std::string& etype,
const std::string&
device,
const std::string& task,
const std::string& msg) :
52 Exception(etype,device +
": " + task +
": " + msg)
63 Exception(
"IOException", device +
": " + task +
": " + msg)
71 Exception(
"IOException", task +
": " + msg)
79 Exception(
"IOException", device +
": " + task,err)
static string device
Definition: sing.cc:60
IOException(const IOException &e)
Copy constructor.
Definition: IOException.h:86
IOException(const std::string &etype, const std::string &device, const std::string &task, const std::string &msg)
Constructor used by sub-classes of IOException (e.g.
Definition: IOException.h:51
IOException(const std::string &device, const std::string &task, int err)
Create an IOException, passing a device name, task (e.g. "read" or "ioctl"), and an errno value...
Definition: IOException.h:78
#define err(format, arg...)
Definition: ck_lams.cc:55
virtual Exception * clone() const
clone myself (a "virtual" constructor).
Definition: IOException.h:97
IOException(const std::string &task, const std::string &msg)
Create an IOException, passing a device name, task (e.g. "read" or "ioctl"), and a message...
Definition: IOException.h:70
IOException & operator=(const IOException &e)
Definition: IOException.h:88
IOException(const std::string &etype, const std::string &device, const std::string &task, int err)
Constructor used by sub-classes of IOException (e.g.
Definition: IOException.h:43
IOException(const std::string &device, const std::string &task, const std::string &msg)
Create an IOException, passing a device name, task (e.g. "read" or "ioctl"), and a message...
Definition: IOException.h:62
Definition: Exception.h:35
Exception & operator=(const Exception &e)
Definition: Exception.h:74
Definition: IOException.h:37