Remove dynamic exceptions
[anna.git] / source / xml / Parser.cpp
index 6eed989..b2d1e51 100644 (file)
@@ -47,7 +47,7 @@ Parser::~Parser() {
 }
 
 const Node* Parser::apply(const Document& document)
-throw(RuntimeException) {
+noexcept(false) {
   LOGMETHOD(TraceMethod tf("anna::xml::Parser", "apply(Document)", ANNA_FILE_LOCATION));
   Guard guard(*this);
   reset();
@@ -56,7 +56,7 @@ throw(RuntimeException) {
 }
 
 const Node* Parser::apply(const Document& document, const DTD& dtd)
-throw(RuntimeException) {
+noexcept(false) {
   LOGMETHOD(TraceMethod tf("anna::xml::Parser", "apply(Document,DTD)", ANNA_FILE_LOCATION));
   Guard guard(*this);
   reset();
@@ -66,7 +66,7 @@ throw(RuntimeException) {
 }
 
 void Parser::apply(_xmlDoc* document)
-throw(RuntimeException) {
+noexcept(false) {
   LOGMETHOD(TraceMethod tf("anna::xml::Parser", "apply (_xmlDoc)", ANNA_FILE_LOCATION));
   xmlNode* root;
 
@@ -91,7 +91,7 @@ throw(RuntimeException) {
 }
 
 void Parser::children(Node* node, xmlNode* xmlNode)
-throw(RuntimeException) {
+noexcept(false) {
   Node* child;
   bool isSeparator;
   const char* w;
@@ -133,7 +133,7 @@ throw(RuntimeException) {
 }
 
 void Parser::attributes(Node* node, xmlAttr* attribute)
-throw(RuntimeException) {
+noexcept(false) {
   const char* value;
   const Namespace* ns = NULL;
 
@@ -147,7 +147,7 @@ throw(RuntimeException) {
 
 /* static */
 void Parser::errorHandler(void *ctx,  const char *msg, ...)
-throw() {
+{
   va_list ap;
   va_start(ap, msg);
   vsprintf(st_text, msg, ap);
@@ -162,7 +162,7 @@ throw() {
 
 /* static */
 void Parser::warningHandler(void *ctx,  const char *msg, ...)
-throw() {
+{
   va_list ap;
 
   if(Logger::isActive(Logger::Warning)) {
@@ -180,13 +180,13 @@ throw() {
 
 // La metodo que invoque a este debe hacerlo con una secci�n cr�tica activa.
 void Parser::reset()
-throw() {
+{
   if(a_root != NULL)
     a_root->clear();
 }
 
 void Parser::setupEncoding(_xmlDoc* document)
-throw() {
+{
   if(document->encoding != NULL) {
     a_encoding = true;
 
@@ -205,7 +205,7 @@ throw() {
 }
 
 const char* Parser::decode(const unsigned char* source)
-throw() {
+{
   if(a_encoding == false)
     return (const char*) source;