diff --git a/sflphone-common/src/config/yamlparser.h b/sflphone-common/src/config/yamlparser.h
index b4ebf0f9014d4d6fa9105e0ab41d3673e2ef841c..e2fe505eca45e33ef6c875538d0c5dd3fc4e1c08 100644
--- a/sflphone-common/src/config/yamlparser.h
+++ b/sflphone-common/src/config/yamlparser.h
@@ -34,7 +34,7 @@
 #include "yamlnode.h"
 #include <yaml.h>
 #include <stdio.h>
-#include <exception>
+#include <stdexcept>
 #include <string>
 #include <vector>
 
@@ -45,18 +45,11 @@ namespace Conf
 
 typedef std::vector<yaml_event_t> YamlEventVector;
 
-class YamlParserException : public std::exception
+class YamlParserException : public std::runtime_error
 {
     public:
-        YamlParserException (const std::string& str="") : errstr ("YamlParserException occured: " + str) {}
-
-        virtual ~YamlParserException() throw() {}
-
-        virtual const char *what() const throw() {
-            return errstr.c_str();
-        }
-    private:
-        std::string errstr;
+        YamlParserException (const std::string& str="") :
+            std::runtime_error("YamlParserException occured: " + str) {}
 };