Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Static Private Attributes
org.mozilla.xpcom.XPCOMException Class Reference

This exception is thrown whenever an internal XPCOM/Gecko error occurs. More...

List of all members.

Public Member Functions

 XPCOMException ()
 Constructs a new XPCOMException instance, with a default error (NS_ERROR_FAILURE) and message.
 XPCOMException (String message)
 Constructs a new XPCOMException instance with the given message, passing NS_ERROR_FAILURE as the error code.
 XPCOMException (long code)
 Constructs a new XPCOMException instance with the given code, passing a default message.
 XPCOMException (long code, String message)
 Constructs a new XPCOMException instance with an error code and message.

Public Attributes

long errorcode
 The XPCOM error value.

Static Private Attributes

static final long serialVersionUID = 198521829884000593L

Detailed Description

This exception is thrown whenever an internal XPCOM/Gecko error occurs.

You can query the error ID returned by XPCOM by checking errorcode field.

Definition at line 46 of file XPCOMException.java.


Constructor & Destructor Documentation

Constructs a new XPCOMException instance, with a default error (NS_ERROR_FAILURE) and message.

Definition at line 59 of file XPCOMException.java.

                          {
    this(0x80004005L, "Unspecified internal XPCOM error");
  }

Constructs a new XPCOMException instance with the given message, passing NS_ERROR_FAILURE as the error code.

Parameters:
messagedetailed message of exception

Definition at line 69 of file XPCOMException.java.

                                        {
    this(0x80004005L, message);
  }

Constructs a new XPCOMException instance with the given code, passing a default message.

Parameters:
codeinternal XPCOM error ID

Definition at line 79 of file XPCOMException.java.

                                   {
    this(code, "Internal XPCOM error");
  }

Constructs a new XPCOMException instance with an error code and message.

Parameters:
codeinternal XPCOM error ID
messagedetailed message of exception

Definition at line 89 of file XPCOMException.java.

                                                   {
    super(message + "  (0x" + Long.toHexString(code) + ")");
    this.errorcode = code;
  }

Member Data Documentation

The XPCOM error value.

Definition at line 51 of file XPCOMException.java.

final long org.mozilla.xpcom.XPCOMException.serialVersionUID = 198521829884000593L [static, private]

Definition at line 53 of file XPCOMException.java.


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