diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-04-27 18:05:29 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-04-27 18:05:29 -0400 |
commit | fce15b9a801e24a1c7720946af42fd68d10a7ce9 (patch) | |
tree | ae3dee6ada1d70ed86596c3b5f49bbc2c8c4837b | |
parent | 7f7bfc7789c7c0d5b8a8daeda82b349ee1ea52a0 (diff) | |
download | fuse_networks-fce15b9a801e24a1c7720946af42fd68d10a7ce9.tar.gz fuse_networks-fce15b9a801e24a1c7720946af42fd68d10a7ce9.tar.bz2 fuse_networks-fce15b9a801e24a1c7720946af42fd68d10a7ce9.zip |
added exception definition to measurements
-rw-r--r-- | src/measurements.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/measurements.cpp b/src/measurements.cpp index bf053e9..841e61a 100644 --- a/src/measurements.cpp +++ b/src/measurements.cpp @@ -3,6 +3,15 @@ #include <iostream> #include <cstdio> +class badcycleException: public std::exception +{ + virtual const char* what() const throw() + { + return "Could not find a valid cycle on the broken system."; + } +} badcycleex; + + void update_distribution_file(std::string id, const std::vector<uint64_t>& data, std::string model_string) { std::string filename = model_string + id + ".dat"; std::ifstream file(filename); |