Remove dynamic exceptions
[anna.git] / source / io / functions.cpp
index 47700ff..590180a 100644 (file)
@@ -21,7 +21,7 @@ using namespace std;
 using namespace anna;
 
 void io::functions::mkdir(const std::string& path)
-throw(RuntimeException) {
+noexcept(false) {
   Tokenizer tokenizer;
   string w;
   int r;
@@ -41,7 +41,7 @@ throw(RuntimeException) {
 }
 
 bool io::functions::exists(const char* path)
-throw(RuntimeException) {
+noexcept(false) {
   struct stat data;
   int r;
   anna_signal_shield(r, stat(path, &data));
@@ -56,7 +56,7 @@ throw(RuntimeException) {
 }
 
 bool io::functions::isADirectory(const char* path)
-throw(RuntimeException) {
+noexcept(false) {
   struct stat data;
   int r;
   anna_signal_shield(r, stat(path, &data));
@@ -68,7 +68,7 @@ throw(RuntimeException) {
 }
 
 ino_t io::functions::getINode(const char* path)
-throw(RuntimeException) {
+noexcept(false) {
   struct stat data;
   int r;
   anna_signal_shield(r, stat(path, &data));
@@ -81,7 +81,7 @@ throw(RuntimeException) {
 
 /*static*/
 bool io::functions::waitInput(const int fd, const Millisecond &timeout)
-throw(RuntimeException) {
+noexcept(false) {
   pollfd waiting;
   int r;
   waiting.fd = fd;