Thank you, I'll do that :)

On 2/22/08, Attila Szegedi <[EMAIL PROTECTED]> wrote:
> Throwing an exception would be the way to go. The interpreter will
>  only be catching and wrapping checked exceptions, so any
>  RuntimeException or Error will do.
>
>  Calling Context.exit() won't have the desired effect.
>
>
>  Attila.
>
>
>  On 2008.02.22., at 15:35, Christian Vest Hansen wrote:
>
>  > I have a function that extends BaseFunction and overrides the call()
>  > method.
>  >
>  > When scripts call this function, I want the script execution to stop.
>  >
>  > Is this possible? Should I create a StopScriptError and throw it, or
>  > will the scripts be able to catch it? Or can I call exit() on the
>  > provided Context to halt the execution?
>  >
>  >
>  > --
>  > Venlig hilsen / Kind regards,
>  > Christian Vest Hansen.
>


-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to