Struct xpcom::interfaces::nsIErrorService [] [src]

#[repr(C)]
pub struct nsIErrorService { /* fields omitted */ }

interface nsIErrorService : nsISupports

/**
 * nsIErrorService: This is an interim service that allows nsresult codes to be mapped to
 * string bundles that can be used to look up error messages. String bundle keys can also
 * be mapped.
 *
 * This service will eventually get replaced by extending xpidl to allow errors to be defined.
 * (http://bugzilla.mozilla.org/show_bug.cgi?id=13423).
 */

Methods

impl nsIErrorService
[src]

[src]

Cast this nsIErrorService to one of its base interfaces.

impl nsIErrorService
[src]

[src]

/**
     * Registers a string bundle URL for an error module. Error modules are obtained from
     * nsresult code with NS_ERROR_GET_MODULE.
     */

void registerErrorStringBundle (in short errorModule, in string stringBundleURL);

[src]

/**
     * Unregisters a string bundle URL for an error module.
     */

void unregisterErrorStringBundle (in short errorModule);

[src]

/**
     * Retrieves a string bundle URL for an error module.
     */

string getErrorStringBundle (in short errorModule);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIErrorService
[src]

IID: nsIID = nsID(2950820240, 41922, 4579, [165, 226, 8, 0, 32, 12, 154, 102])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIErrorService
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIErrorService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.