Hi Will,

The default behavior is as far as I know indeed built-in. At least, never
saw a module that seemed to implement the built-in behavior. But perhaps
you don't need to reference it from XQuery. I think that any error raised
in a custom error handler is caught by the built-in one. So, don't write
output, but always raise a new error through fn:error. You might need to
fiddle a bit to find a way to pass through exceptions 'untouched' if you
would like to..

Kind regards,
Geert

> -----Oorspronkelijk bericht-----
> Van: [email protected] [mailto:general-
> [email protected]] Namens Will Thompson
> Verzonden: dinsdag 30 oktober 2012 18:20
> Aan: MarkLogic Developer Discussion
> Onderwerp: [MarkLogic Dev General] Extending error handling
>
> I want to extend the functionality of the existing HTTP error handler,
but not
> necessarily replace it. I thought at the very least I could make a copy
of the
> existing error handler, add my extensions, and point the App Server
there, but I
> can't seem to find the right XQY module. Is the default error handler
part of the
> executable, not XQY?
>
> -Will
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to