#include "alg/conserved_path.hpp"
-#include <stdexcept>
+#include "mussa_exceptions.hpp"
using namespace std;
bool ConservedPath::nextTo(const ConservedPath& next) const
{
if (size() != next.size() ) {
- throw runtime_error("paths must be the same length");
+ throw conserved_path_size_mismatch("paths must be the same length");
}
ConservedPath::const_iterator this_itor = begin();
ConservedPath::const_iterator next_itor = next.begin();