nsISupports
Last changed in Gecko 1.7 Implemented by: @mozilla.org/xpcom/error-service;1
string getErrorStringBundle(in short errorModule); |
string getErrorStringBundleKey(in nsresult error); |
void registerErrorStringBundle(in short errorModule, in string stringBundleURL); |
void registerErrorStringBundleKey(in nsresult error, in string stringBundleKey); |
void unregisterErrorStringBundle(in short errorModule); |
void unregisterErrorStringBundleKey(in nsresult error); |
Retrieves a string bundle URL for an error module.
string getErrorStringBundle( in short errorModule );
errorModulensresult code with NS_ERROR_GET_MODULE.The URL of the string bundle registered for that module.
Retrieves a key in a string bundle for an nsresult error code. If no key is registered for the specified nsresult, then the caller should use the nsresult's code (obtained with NS_ERROR_GET_CODE) instead.
string getErrorStringBundleKey( in nsresult error );
errornsresult for which the string bundle key is to be retrieved.The key to use to retrieve the error string from the nsresult's module's string bundle.
Registers a string bundle URL for an error module.
void registerErrorStringBundle( in short errorModule, in string stringBundleURL );
errorModulexpcom/base/nsError.h, such as NS_ERROR_MODULE_STORAGE.stringBundleURLRegisters a key in a string bundle for an nsresult error code.
void registerErrorStringBundleKey( in nsresult error, in string stringBundleKey );
errornsresult for which the string bundle key is to be registered.stringBundleKeynsresult.Unregisters a string bundle URL for an error module.
void unregisterErrorStringBundle( in short errorModule );
errorModulexpcom/base/nsError.h, such as NS_ERROR_MODULE_STORAGE.Unregisters a key in a string bundle for an nsresult error code.
void unregisterErrorStringBundleKey( in nsresult error );
errornsresult for which the string bundle key is to be unregistered.