Skip to content
Snippets Groups Projects
Commit 996438ec authored by Jan Trávníček's avatar Jan Trávníček
Browse files

report the key of xml parser registration object

parent c5879d32
No related branches found
No related tags found
No related merge requests found
Pipeline #28353 canceled
...@@ -105,11 +105,12 @@ private: ...@@ -105,11 +105,12 @@ private:
public: public:
template < class Type > template < class Type >
static void unregisterXmlReader ( ) { static void unregisterXmlReader ( ) {
if ( ! parseFunctions ( ).erase ( xmlApi < Type >::xmlTagName ( ) ) ) { const std::string & tagName = xmlApi < Type >::xmlTagName ( );
if ( ! parseFunctions ( ).erase ( tagName ) ) {
std::string groupName = ext::to_string < object::Object > ( ); std::string groupName = ext::to_string < object::Object > ( );
std::string typeName = ext::to_string < Type > ( ); std::string typeName = ext::to_string < Type > ( );
   
throw::exception::CommonException ( "Parse callback of " + typeName + " not registered in group " + groupName + "." ); throw::exception::CommonException ( "Parse callback of " + typeName + " identified as " + tagName + " not registered in group " + groupName + "." );
} }
} }
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment