Skip to content
Snippets Groups Projects
Commit a5f030b6 authored by Unknown (roddey)'s avatar Unknown (roddey)
Browse files

Improved error reporting

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@171963 13f79535-47bb-0310-9956-ffa450edef68
parent f8838daa
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,9 @@
/*
* $Log$
* Revision 1.7 2000/03/18 00:00:58 roddey
* Improved error reporting
*
* Revision 1.6 2000/03/03 01:29:36 roddey
* Added a scanReset()/parseReset() method to the scanner and
* parsers, to allow for reset after early exit from a progressive parse.
......@@ -238,14 +241,27 @@ static bool parseParms(const int argC, XMLCh** argV)
static void parseError(const XMLException& toCatch)
{
wprintf(L"Parse Error:\n ERROR: %s\n\n", toCatch.getMessage());
wprintf
(
L"Exception\n (Line.File):%d.%s\n ERROR: %s\n\n"
, toCatch.getSrcLine()
, toCatch.getSrcFile()
, toCatch.getMessage()
);
throw ErrReturn_ParseErr;
}
static void parseError(const SAXParseException& toCatch)
{
wprintf(L"Parse Error:\n SAX ERROR: %s\n\n", toCatch.getMessage());
wprintf
(
L"SAX Parse Error:\n (Line.Col.SysId): %d.%d.%s\n ERROR: %s\n\n"
, toCatch.getLineNumber()
, toCatch.getColumnNumber()
, toCatch.getSystemId()
, toCatch.getMessage()
);
throw ErrReturn_ParseErr;
}
......
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