]> git.tdb.fi Git - libs/gui.git/blobdiff - source/gbase/display.h
Exception changes
[libs/gui.git] / source / gbase / display.h
index c058e4118c80faec75c9dd0046a4add0d576ca82..662e73fa67e6dc8742a49fec2994dbdb7caf89b0 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <list>
 #include <map>
+#include <stdexcept>
 #include <string>
 
 namespace Msp {
@@ -20,6 +21,15 @@ struct VideoMode
        VideoMode(unsigned w, unsigned h): width(w), height(h), rate(0) { }
 };
 
+
+class unsupported_video_mode: public std::runtime_error
+{
+public:
+       unsupported_video_mode(const VideoMode &);
+       virtual ~unsupported_video_mode() throw () { }
+};
+
+
 class Display
 {
 public: