Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
ErrorObserver Class Reference

A simple interface for observing errors. More...

#include <ErrorObserver.h>

List of all members.

Public Member Functions

virtual ~ErrorObserver ()
 Default Destructor for ErrorObserver.
virtual void receiveError (const nsAString &errorMessage, nsresult aRes)=0
 Notifies this Error observer of a new error aRes.
void receiveError (const nsAString &errorMessage)
 Notifies this Error observer of a new error, with default error code NS_ERROR_FAILURE.

Detailed Description

A simple interface for observing errors.

Definition at line 50 of file ErrorObserver.h.


Constructor & Destructor Documentation

virtual ErrorObserver::~ErrorObserver ( ) [inline, virtual]

Default Destructor for ErrorObserver.

Definition at line 57 of file ErrorObserver.h.

{};

Member Function Documentation

virtual void ErrorObserver::receiveError ( const nsAString &  errorMessage,
nsresult  aRes 
) [pure virtual]

Notifies this Error observer of a new error aRes.

Here is the caller graph for this function:

void ErrorObserver::receiveError ( const nsAString &  errorMessage) [inline]

Notifies this Error observer of a new error, with default error code NS_ERROR_FAILURE.

Definition at line 68 of file ErrorObserver.h.

    {
        receiveError(errorMessage, NS_ERROR_FAILURE);
    }

Here is the call graph for this function:


The documentation for this class was generated from the following file: