(NS_ERROR_NOT_AVAILABLE) [jsdIStackFrame.isNative]

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

(NS_ERROR_NOT_AVAILABLE) [jsdIStackFrame.isNative]

John J Barton
I wrote:
---
if (frame.isNative) return "(native)";
--
And I got
Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE)
[jsdIStackFrame.isNative]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"

How can I know before issuing frame.isNative that it will fail?

Thanks,
John.
_______________________________________________
dev-apps-js-debugger mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-js-debugger
Reply | Threaded
Open this post in threaded view
|

Re: (NS_ERROR_NOT_AVAILABLE) [jsdIStackFrame.isNative]

John Bandhauer
John J. Barton wrote:

> I wrote:
> ---
> if (frame.isNative) return "(native)";
> --
> And I got
> Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE)
> [jsdIStackFrame.isNative]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"
>
> How can I know before issuing frame.isNative that it will fail?
>
> Thanks,
> John.

See:

http://lxr.mozilla.org/seamonkey/source/js/jsd/idl/jsdIDebuggerService.idl#772

Use 'isValid' on the inherited jsdIEphemeral interface.

You can, or course, also use exception handling to catch errors
after-the-fact as appropriate.

John.
_______________________________________________
dev-apps-js-debugger mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-js-debugger