[Qt-interest] QXmlSchemaValidator::validate throws exception on validation error
Ulf-Alexander v. Ceumern-Lindenstjerna
ceumern at vrmagic.com
Tue May 11 17:04:29 CEST 2010
Thanks. The message handler is working just fine now.
About the exception:
This only happens when I start the test in the debugger. For some reason
the debugger catches the exception, which is really annoying.
"First-chance exception at 0x7c812afb in case_testd.exe: Microsoft C++
exception: bool at memory location 0x0012ea4b.."
When I start the test w/o debugger it works just fine.
Regards, Ulf
> -----Original Message-----
> From: Konrad Rosenbaum [mailto:konrad at silmor.de]
> Sent: Tuesday, May 11, 2010 4:32 PM
> To: Ulf-Alexander v. Ceumern-Lindenstjerna
> Cc: qt-interest
> Subject: Re: [Qt-interest] QXmlSchemaValidator::validate throws
> exception on validation error
>
> On Tue, May 11, 2010 16:04, Ulf-Alexander v. Ceumern-Lindenstjerna
> wrote:
> > I just recently decided to use QXmlSchemaValidator to validate my
xml
> > files.
> >
> > This seems to work just fine, except that
> QXmlSchemaValidator::validate
> > throws an exception deep in QPatternist::ReportContext::createError:
>
> You should never get the exception in your own code. It is caught
> inside
> QXmlSchemaValidator.
>
> You use a class derived from QAbstractMessageHandler to get the error
> message.
>
> Have a look at the schema example - it shows pretty well how to use
> these
> classes.
>
>
> Konrad
More information about the Qt-interest-old
mailing list