From fce15b9a801e24a1c7720946af42fd68d10a7ce9 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sat, 27 Apr 2019 18:05:29 -0400 Subject: added exception definition to measurements --- src/measurements.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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 #include +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& data, std::string model_string) { std::string filename = model_string + id + ".dat"; std::ifstream file(filename); -- cgit v1.2.3-70-g09d2