Re: (NS_ERROR_NOT_AVAILABLE) [jsdIStackFrame.isNative]
John Bandhauer <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.jsdebugger |
|---|---|
| Message-ID | <[email protected]> |
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.