Added new exception rfb::UnsupportedPixelFormatException.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@598 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/ScaledPixelBuffer.h b/common/rfb/ScaledPixelBuffer.h
index d69f0ac..8af6957 100644
--- a/common/rfb/ScaledPixelBuffer.h
+++ b/common/rfb/ScaledPixelBuffer.h
@@ -23,6 +23,7 @@
 // interpolation.
 
 #include <rdr/types.h>
+#include <rdr/Exception.h>
 #include <rfb/Rect.h>
 #include <rfb/PixelFormat.h>
 
@@ -30,6 +31,11 @@
 
 namespace rfb {
 
+  struct UnsupportedPixelFormatException : public Exception {
+    UnsupportedPixelFormatException(const char* s="Now supported only true colour pixel data in the scaling mode.")
+      : Exception(s) {}
+  };
+
   class ScaledPixelBuffer {
   public:
     ScaledPixelBuffer(U8 **data, int width, int height, int scale, PixelFormat pf);