]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/text.cpp
Rework exceptions and use maputils
[libs/gltk.git] / source / text.cpp
index b0d57f7c80afdc5baae8ba0be0144a05f9144a2e..c6fe129fc405ab4c61aa34b3c088a784c9bf3f03 100644 (file)
@@ -108,7 +108,7 @@ void Text::insert(unsigned pos, const string &s)
 unsigned Text::get_line_length(unsigned i) const
 {
        if(i>=lines.size())
-               throw InvalidParameterValue("Invalid line number");
+               throw out_of_range("Text::get_line_length");
        return lines[i].length;
 }