]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/container.h
Rework exceptions and use maputils
[libs/gltk.git] / source / container.h
index 66884652fc4da3bb80097d90c0f167d05d06ef95..d1120cd8c36bb1e25fb845f6a20831cc264c057c 100644 (file)
@@ -2,12 +2,21 @@
 #define MSP_GLTK_CONTAINER_H_
 
 #include <list>
+#include <stdexcept>
 #include <sigc++/trackable.h>
 #include "widget.h"
 
 namespace Msp {
 namespace GLtk {
 
+class hierarchy_error: public std::logic_error
+{
+public:
+       hierarchy_error(const std::string &);
+       virtual ~hierarchy_error() throw() { }
+};
+
+
 class Container: virtual public Widget
 {
 protected: