Bug 334558 - Document throwing behaviour of nsIServiceManager::isServiceInstantiated* methods. r=bsmedberg
authorCykesiopka <cykesiopka.bmo@gmail.com>
Wed, 10 Jul 2013 14:57:34 -0400
changeset 138026 c9601e26caffcc1d2688635fd44dbb9e820d63b9
parent 138025 c8163a5139993ab6aafa33eb914717185359b241
child 138027 b131b1f08ffcd4d800a822ef521f9fcebb1e695f
push idunknown
push userunknown
push dateunknown
reviewersbsmedberg
bugs334558
milestone25.0a1
Bug 334558 - Document throwing behaviour of nsIServiceManager::isServiceInstantiated* methods. r=bsmedberg
xpcom/components/nsIServiceManager.idl
--- a/xpcom/components/nsIServiceManager.idl
+++ b/xpcom/components/nsIServiceManager.idl
@@ -40,22 +40,24 @@ interface nsIServiceManager : nsISupport
     void getServiceByContractID(in string aContractID,
 				in nsIIDRef aIID, 
 				[iid_is(aIID),retval] out nsQIResult result);
 
     /**
      * isServiceInstantiated
      *
      * isServiceInstantiated will return a true if the service has already
-     * been created, otherwise false
+     * been created, or throw otherwise
      *
      * @param aClass or aContractID : aClass or aContractID of object 
      *                                instance requested
      * @param aIID : IID of interface requested
-     * @param aIID : IID of interface requested
+     * @throws NS_ERROR_SERVICE_NOT_AVAILABLE if the service hasn't been 
+     *         instantiated
+     * @throws NS_NOINTERFACE if the IID given isn't supported by the object
      */
     boolean isServiceInstantiated(in nsCIDRef aClass, in nsIIDRef aIID);
     boolean isServiceInstantiatedByContractID(in string aContractID, in nsIIDRef aIID);
 };
 
 
 %{C++
 // Observing xpcom autoregistration.  Topics will be 'start' and 'stop'.