Remove dynamic exceptions
[anna.git] / include / anna / app / functions.hpp
index c078917..695c35a 100644 (file)
@@ -26,7 +26,7 @@ struct functions : public anna::functions {
   /**
      Devuelve la referencia de la instancia de nuestra aplicacion
   */
-  static Application& getApp() throw(RuntimeException);
+  static Application& getApp() noexcept(false);
 
 
   /**
@@ -41,7 +41,7 @@ struct functions : public anna::functions {
      \see Component
   */
   template <typename T> static T* componentByName(const char *className, const char* fromFile, const int fromLine)
-  throw(anna::RuntimeException) {
+  noexcept(false) {
     T* result = static_cast <T*>(functions::getApp().find(className));
 
     if(result == NULL) {
@@ -64,12 +64,12 @@ struct functions : public anna::functions {
      \return Application component instance for the class provided at the pattern
      \warning T class must implement a method in the form:
      \code
-         static const char* getClassName () throw ();
+         static const char* getClassName () ;
      \endcode
      \see Component
   */
   template <typename T> static T* component(const char* fromFile, const int fromLine)
-  throw(RuntimeException) {
+  noexcept(false) {
     return functions::componentByName<T> (T::getClassName(), fromFile, fromLine);
   }