OSDN Git Service

Makefile を Rakefile に切り替えた。
[simplecms/utakata.git] / src / exception_std.h
index f2bde22..e1aeb87 100644 (file)
@@ -51,6 +51,21 @@ class OutOfRangeException : public exception::Exception {
   virtual const char* what() const throw() {return "OutOfRangeException";}
 };
 
+class NotImplementedException : public exception::Exception {
+  // 機能が未実装である場合などに送出される例外です。
+  // compositeパターンにおいて、利用できない機能の場合に送出したりすることが
+  // できます。
+ public:
+  NotImplementedException(const unicode::UniString& message,
+                      const ExceptionInfo& info)
+      : Exception(message, info) {}
+
+  NotImplementedException(const Exception& prev, const unicode::UniString& message,
+                      const ExceptionInfo& info)
+      : Exception(prev, message, info) {}
+  virtual const char* what() const throw() {return "NotImplementedException";}
+};
+
 }
 }