[XQZone General] Questions about errors/exceptions
McBeath, Darin W (ELS-AMS)
D.McBeath at elsevier.com
Thu Oct 27 06:10:41 PDT 2005
I have a derivation of CQ where I have made some enhancements to do logging,
etc. The logging actually inserts records into a MarkLogic database.
Someday, I will actually clean up this code and put it on xqzone ... but
that is another matter.
But, as part of the error (exception) catching I am sometimes running into
difficulties ... mostly (I believe) because of the logging (and insertion)
of records into a MarkLogic database after certain errors have been caught.
For certain types of 'errors' ... such as XQuery syntax errors ... there is
no problem with the logging or insertion of a record into the MarkLogic
database. However, for other types of errors (such as time limit exceeded)
I then get an 'unknown exception' error when trying to log the error (into
the MarkLogic database). My guess is that MarkLogic, for certain types of
errors ... such as time limit exceeded ... prohibits certain types of
additional operations to be performed against the database (such as a
document insert or node insert). I'm certain there are other types of
errors that will cause a similar problem ... such as tree-cache full, etc.
So, my question is whether there is an easy way for me to identify those
errors generated by the MarkLogic server that are ok to go ahead and log the
error message (insert a record into the MarkLogic database). I could then
avoid the logging of the other more critical errors (at least within the
current transaction) and prevent this anomaly.
Thanks for any help ... btw, I'm using ML 3.0.3 but I will also be porting
this code to 2.2.7.
Darin.
More information about the General
mailing list