aboutsummaryrefslogtreecommitdiffstats
path: root/src/InputReader.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-02-27 14:16:58 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-02-27 14:16:58 +0100
commit1e2a6c6e367849335fd82efb4afc827fd4fe82a6 (patch)
tree19d07a64c8bc3ccbba131ff2385fc4ec93660b14 /src/InputReader.h
parentb11eff2c8c913d470897e5395b240939ed46dc35 (diff)
downloaddabmod-1e2a6c6e367849335fd82efb4afc827fd4fe82a6.tar.gz
dabmod-1e2a6c6e367849335fd82efb4afc827fd4fe82a6.tar.bz2
dabmod-1e2a6c6e367849335fd82efb4afc827fd4fe82a6.zip
Create custom exception for ZMQ overflow
Diffstat (limited to 'src/InputReader.h')
-rw-r--r--src/InputReader.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/InputReader.h b/src/InputReader.h
index e45e36d..dcf88cc 100644
--- a/src/InputReader.h
+++ b/src/InputReader.h
@@ -130,6 +130,14 @@ class InputFileReader : public InputReader
// after 2**32 * 24ms ~= 3.3 years
};
+struct zmq_input_overflow : public std::exception
+{
+ const char* what () const throw ()
+ {
+ return "InputZMQ buffer overflow";
+ }
+};
+
#if defined(HAVE_ZEROMQ)
/* A ZeroMQ input. See www.zeromq.org for more info */