]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/path.cpp
Exception rework for fs components
[libs/core.git] / source / fs / path.cpp
index 52b1da2241dc9a762dbab76a6caa2a0f9bfa3478..784c6eb508cbd953629e0b3819ea82667e083566 100644 (file)
@@ -1,4 +1,4 @@
-#include <msp/core/except.h>
+#include <stdexcept>
 #include <msp/strings/utils.h>
 #include "path.h"
 #include "utils.h"
 #include <msp/strings/utils.h>
 #include "path.h"
 #include "utils.h"
@@ -103,7 +103,7 @@ string Path::operator[](int n) const
                }
        }
 
                }
        }
 
-       throw InvalidParameterValue("Path component index out of range");
+       throw invalid_argument("Path::operator[]");
 }
 
 bool Path::operator==(const Path &p) const
 }
 
 bool Path::operator==(const Path &p) const