Remove dynamic exceptions
[anna.git] / example / dbos / workdir / storage / File.hpp
index 51d4293..412e06c 100644 (file)
@@ -37,41 +37,41 @@ using namespace anna;
 
 class File : public dbos::Object, public dbos::ObjectFacade <File> {
 public:
-  const Directory* getParent() const throw() { return a_parent; }
-  const filesystem::File* getFilesystemFile() const throw() { return a_filesystemFile; }
-  int getINode() const throw() { return a_inode; }
+  const Directory* getParent() const { return a_parent; }
+  const filesystem::File* getFilesystemFile() const { return a_filesystemFile; }
+  int getINode() const { return a_inode; }
 
-  std::string asString() const throw();
+  std::string asString() const ;
 
-  static void setup(dbos::Repository&, const int maxSize) throw(RuntimeException);
-  static File* instantiate(const filesystem::File*) throw(RuntimeException);
+  static void setup(dbos::Repository&, const int maxSize) noexcept(false);
+  static File* instantiate(const filesystem::File*) noexcept(false);
 
-  static const char* getStorageAreaName() throw() { return "storage::File"; }
-  static const dbos::Size getMaxSize() throw() { return st_maxSize; }
+  static const char* getStorageAreaName() { return "storage::File"; }
+  static const dbos::Size getMaxSize() { return st_maxSize; }
 
 private:
   class Loader : public dbos::Loader {
   public:
     Loader() : dbos::Loader() {;}
 
-    Loader& setKey(const filesystem::File* file) throw() {
+    Loader& setKey(const filesystem::File* file) {
       a_filesystemFile = file;
       return *this;
     }
 
-    const filesystem::File* getFile() const throw() { return a_filesystemFile; }
-    int getINode() const throw() { return a_inode; }
+    const filesystem::File* getFile() const { return a_filesystemFile; }
+    int getINode() const { return a_inode; }
 
-    dbos::Index getIndex() const throw();
-    std::string asString() const throw();
+    dbos::Index getIndex() const ;
+    std::string asString() const ;
 
   private:
     const filesystem::File* a_filesystemFile;
     int a_inode;
 
     // dbms::Statement is not required
-    dbms::Statement* initialize(dbms::Database&) throw(RuntimeException) { return NULL; }
-    bool load(dbms::Connection*, const dbos::StorageArea*) throw(RuntimeException);
+    dbms::Statement* initialize(dbms::Database&) noexcept(false) { return NULL; }
+    bool load(dbms::Connection*, const dbos::StorageArea*) noexcept(false);
   };
 
   Directory* a_parent;
@@ -85,8 +85,8 @@ private:
   File() : a_parent(NULL) { ; }
   File(const File&);
 
-  void initialize(dbos::Loader& loader) throw(RuntimeException, dbms::DatabaseException);
-  void destroy() throw();
+  void initialize(dbos::Loader& loader) noexcept(false);
+  void destroy() ;
 
   dbos_declare_object(File);
 };