rapidxml
void rapidxml::parse_error_handler ( const char *  what,
void *  where 
)

When exceptions are disabled by defining RAPIDXML_NO_EXCEPTIONS, this function is called to notify user about the error. It must be defined by the user.

This function cannot return. If it does, the results are undefined.

A very simple definition might look like that:

        void rapidxml::parse_error_handler(const char *what, void *where)
        {
            std::cout << "Parse error: " << what << "\n";
            std::abort();
        }
        
Parameters:
whatHuman readable description of the error.
wherePointer to character data where error was detected.