None that I am aware of. I have seen this done, however, by throwing an 
exception in a try block, and using the catch block inspect the error XML to 
determine contextual information.

try {
  error((), 'BOGUS-ERROR')
} catch ($e)
{
  ** get context from $e **
}

-Will

> On Dec 30, 2015, at 1:30 AM, Tyagi, Devesh <[email protected]> wrote:
> 
> Hi, 
> 
> Is there an API in Marklogic 7 which can give me the context which is 
> executing. For example if I have a module "sample.xqy" and a function 
> "sample:foo()" in it, I want the API to give me at least "sample:foo()".
> 
> Regards,
> Devesh
> "This e-mail and any attachments transmitted with it are for the sole use of 
> the intended recipient(s) and may contain confidential , proprietary or 
> privileged information. If you are not the intended recipient, please contact 
> the sender by reply e-mail and destroy all copies of the original message. 
> Any unauthorized review, use, disclosure, dissemination, forwarding, printing 
> or copying of this e-mail or any action taken in reliance on this e-mail is 
> strictly prohibited and may be unlawful." 
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at: 
> http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to