X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cba7a4411e9eb8cd10066db126c413363c65111a..0bb08c80b2bff9de24524dc98f04cd145dfc93c0:/src/mc/mc_record.cpp diff --git a/src/mc/mc_record.cpp b/src/mc/mc_record.cpp index 5018b250e7..4af7633d9f 100644 --- a/src/mc/mc_record.cpp +++ b/src/mc/mc_record.cpp @@ -77,7 +77,7 @@ RecordTrace parseRecordTrace(const char* data) RecordTrace res; XBT_INFO("path=%s", data); if (data == nullptr || data[0] == '\0') - throw std::runtime_error("Could not parse record path"); + throw std::invalid_argument("Could not parse record path"); const char* current = data; while (*current) { @@ -85,7 +85,7 @@ RecordTrace parseRecordTrace(const char* data) simgrid::mc::Transition item; int count = sscanf(current, "%d/%d", &item.pid, &item.argument); if(count != 2 && count != 1) - throw std::runtime_error("Could not parse record path"); + throw std::invalid_argument("Could not parse record path"); res.push_back(item); // Find next chunk: