+ enum
+ {
+ BAD_IMAGE_FORMAT = 1024
+ };
+
+ explicit Exception(unsigned error) :
+ Mf::Exception(error) {}
+
+ void raise()
+ {
+ throw *this;
+ }
+
+ const char* what() const throw()
+ {
+ switch (code)
+ {
+ case BAD_IMAGE_FORMAT:
+ return "unknown image format";
+ }
+ return Mf::Exception::what();
+ }