]> git.tdb.fi Git - libs/gui.git/blobdiff - source/gbase/image.h
Exception changes
[libs/gui.git] / source / gbase / image.h
index 60dd895b370864892f10ca65e2faa9d5219b8dc7..aec1b0dc15ffb1be598e9d67b0beb38279cc17c9 100644 (file)
@@ -7,6 +7,21 @@
 namespace Msp {
 namespace Graphics {
 
+class unsupported_image_format: public std::runtime_error
+{
+public:
+       unsupported_image_format(const std::string &w): std::runtime_error(w) { }
+       virtual ~unsupported_image_format() throw() { }
+};
+
+class bad_image_data: public std::runtime_error
+{
+public:
+       bad_image_data(const std::string &w): std::runtime_error(w) { }
+       virtual ~bad_image_data() throw() { }
+};
+
+
 class Image
 {
 public: