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:
-
what | Human readable description of the error. |
where | Pointer to character data where error was detected. |