What's new – brief update

I have been busy with a new project lately.  It's going to take a while to polish and test, but I'll post an announcement when it's ready for the public.  You may notice a few changes to codedawn.com—this is due to a change in hosting and I won't bore you with all the details.  Also, I plan on updating my Firefox add-ons soon for the release of Firefox 3.1.
 

The anatomy of an XPCOM exception in Javascript

January 31, 2009

While I was in the midst of developing a new add-on for Firefox, I ran across the need to do some error handling while using an XPCOM interface.  By using a try...catch block in my Javascript code, I was able to capture the exceptions thrown by the XPCOM component.  If you have used Firefox's Error Console, you probably have already seen what one of these exceptions look like:

Error Console screenshot

The exception produces a result code that begins with the letters NS, which is called an nsresult.  I was able to f...


Continue reading...
 
Custom Search


Make a Free Website with Yola.