Remove dynamic exceptions
[anna.git] / source / xml / XPath.cpp
index f2e98cc..8d46fd1 100644 (file)
@@ -36,7 +36,7 @@ xml::XPath::XPath(const char* name) {
  * Los nodos se recuperan mediante los métodos node_begin, node_end y node
  */
 void xml::XPath::apply(const Document& document, const char* expression, const int mode)
-throw(RuntimeException) {
+noexcept(false) {
   a_mode = mode;
   ConfigSkeleton configSkeleton(&XPath::callbackApply);
 
@@ -47,7 +47,7 @@ throw(RuntimeException) {
 }
 
 bool xml::XPath::match(const Document& document, const char* expression, const int mode)
-throw(RuntimeException) {
+noexcept(false) {
   a_result = false;
   ConfigSkeleton configSkeleton(&XPath::callbackMatch);
 
@@ -65,7 +65,7 @@ throw(RuntimeException) {
 }
 
 const xml::Node* xml::XPath::find(const Document& document, const char* expression, const int mode, const Exception::Mode::_v emode)
-throw(RuntimeException) {
+noexcept(false) {
   apply(document, expression, mode);
   Node::const_child_iterator ii = node_begin();
 
@@ -96,7 +96,7 @@ throw(RuntimeException) {
 }
 
 void xml::XPath::skeleton(const Document& document, const char* expression, xml::XPath::ConfigSkeleton& config)
-throw(RuntimeException) {
+noexcept(false) {
   LOGDEBUG(
     string msg("xml::XPath::skeleton | Document: ");
     msg += functions::asString(document.getContent());
@@ -146,7 +146,7 @@ throw(RuntimeException) {
  * lo que nos obliga a recorrerlo en profundidad.
  */
 void xml::XPath::initializeNamespaces(_xmlXPathContext* context, const Document& document)
-throw(RuntimeException) {
+noexcept(false) {
   xmlNode* root;
 
   if((root = xmlDocGetRootElement(document.a_handle)) == NULL)
@@ -157,7 +157,7 @@ throw(RuntimeException) {
 }
 
 void xml::XPath::forwardNamespaces(_xmlXPathContext* context, _xmlNode* xmlNode)
-throw(RuntimeException) {
+noexcept(false) {
   while(xmlNode != NULL) {
     if(xmlNode->type == XML_ELEMENT_NODE) {
       for(xmlNs* ns = xmlNode->nsDef; ns != NULL; ns = ns->next) {
@@ -214,7 +214,7 @@ void xml::XPath::callbackMatch(const _xmlNodeSet* nodes) {
 }
 
 void xml::XPath::text(Node* node, xmlNode* xmlNode)
-throw(RuntimeException) {
+noexcept(false) {
   bool isSeparator;
   const char* w;