]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/panel.cpp
Rework exceptions and use maputils
[libs/gltk.git] / source / panel.cpp
index b44004ff129c63b90cfb2b4aa5b8b2039e2aabe1..4b44370343c47bcbe8fae960ad0d6827881bb234 100644 (file)
@@ -53,7 +53,7 @@ void Panel::raise(Widget &wdg)
                        return;
                }
 
-       throw InvalidState("That Widget is not in this Panel");
+       throw hierarchy_error("widget not in panel");
 }
 
 Widget *Panel::get_final_input_focus() const