XMLErrorHandler
is used as a generic Handler for the XML4C SAX error interface mapping XML to UIMACPP exceptions.
It can be used with any XML4C SAX or DOM parser class as argument for the setErrorHandler() function. It will throw an ExcIllFormedInputError
for each warning, error or fatalError of the parser. The error id will be UIMA_ERR_RESOURCE_CORRUPTED
. The message will contain line, column and description.
Public Member Functions | |
XMLErrorHandler () | |
~XMLErrorHandler () | |
void | warning (const SAXParseException &exception) |
void | error (const SAXParseException &exception) |
void | fatalError (const SAXParseException &exception) |
uima::XMLErrorHandler::XMLErrorHandler | ( | ) |
uima::XMLErrorHandler::~XMLErrorHandler | ( | ) |
void uima::XMLErrorHandler::warning | ( | const SAXParseException & | exception | ) |
void uima::XMLErrorHandler::error | ( | const SAXParseException & | exception | ) |
void uima::XMLErrorHandler::fatalError | ( | const SAXParseException & | exception | ) |