use a specific exception when nextTo breaks
[mussa.git] / mussa_exceptions.hpp
index aa920b1afda7fb157fcfab4b2d489453184b7825..2f327b73859a54c579ad9bee64939ff18c81eb4f 100644 (file)
@@ -64,4 +64,12 @@ public:
   explicit motif_normalize_error(const std::string& msg) : 
     mussa_error(msg) {};
 };
+
+//! ConservedPath::nextTo had two paths that weren't the same size
+class conserved_path_size_mismatch : public mussa_error
+{
+public:
+  explicit conserved_path_size_mismatch(const std::string& msg) :
+    mussa_error(msg) {};
+};
 #endif