Back to index

lightning-sunbird  0.9+nobinonly
Defines
nsNetError.h File Reference
#include "nsError.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NS_BINDING_SUCCEEDED   NS_OK
 The async request completed successfully.
#define NS_BINDING_FAILED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 1)
 The async request failed for some unknown reason.
#define NS_BINDING_ABORTED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 2)
 The async request failed because it was aborted by some user action.
#define NS_BINDING_REDIRECTED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 3)
 The async request has been "redirected" to a different async request.
#define NS_BINDING_RETARGETED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 4)
 The async request has been "retargeted" to a different "handler.".
#define NS_ERROR_MALFORMED_URI   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 10)
 The URI is malformed.
#define NS_ERROR_UNKNOWN_PROTOCOL   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 18)
 The URI scheme corresponds to an unknown protocol handler.
#define NS_ERROR_NO_CONTENT   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 17)
 Returned from nsIChannel::asyncOpen to indicate that OnDataAvailable will not be called because there is no content available.
#define NS_ERROR_IN_PROGRESS   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 15)
 The requested action could not be completed while the object is busy.
#define NS_ERROR_ALREADY_CONNECTED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 11)
 The connection is already established.
#define NS_ERROR_NOT_CONNECTED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 12)
 The connection does not exist.
#define NS_ERROR_CONNECTION_REFUSED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 13)
 The connection attempt failed, for example, because no server was listening at specified host:port.
#define NS_ERROR_PROXY_CONNECTION_REFUSED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 72)
 The connection attempt to a proxy failed.
#define NS_ERROR_NET_TIMEOUT   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 14)
 The connection was lost due to a timeout error.
#define NS_ERROR_OFFLINE   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 16)
 The requested action could not be completed while the networking library is in the offline state.
#define NS_ERROR_PORT_ACCESS_NOT_ALLOWED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 19)
 The requested action was prohibited because it would have caused the networking library to establish a connection to an unsafe or otherwise banned port.
#define NS_ERROR_NET_RESET   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 20)
 The connection was established, but no data was ever received.
#define NS_ERROR_NET_INTERRUPT   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 71)
 The connection was established, but the data transfer was interrupted.
#define NS_ERROR_NOT_RESUMABLE   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 25)
 This request is not resumable, but it was tried to resume it, or to request resume-specific data.
#define NS_ERROR_ENTITY_CHANGED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 32)
 It was attempted to resume the request, but the entity has changed in the meantime.
#define NS_ERROR_REDIRECT_LOOP   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 31)
 The request failed as a result of a detected redirection loop.
#define NS_ERROR_UNSAFE_CONTENT_TYPE   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 74)
 The request failed because the content type returned by the server was not a type expected by the channel (for nested channels such as the JAR channel).
#define NS_ERROR_FTP_LOGIN   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 21)
#define NS_ERROR_FTP_CWD   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 22)
#define NS_ERROR_FTP_PASV   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 23)
#define NS_ERROR_FTP_PWD   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 24)
#define NS_ERROR_FTP_LIST   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 25)
#define NS_ERROR_UNKNOWN_HOST   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 30)
 The lookup of a hostname failed.
#define NS_ERROR_UNKNOWN_PROXY_HOST   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 42)
 The lookup of a proxy hostname failed.
#define NS_ERROR_UNKNOWN_SOCKET_TYPE   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 51)
 The specified socket type does not exist.
#define NS_ERROR_SOCKET_CREATE_FAILED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 52)
 The specified socket type could not be created.
#define NS_ERROR_CACHE_KEY_NOT_FOUND   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 61)
#define NS_ERROR_CACHE_DATA_IS_STREAM   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 62)
#define NS_ERROR_CACHE_DATA_IS_NOT_STREAM   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 63)
#define NS_ERROR_CACHE_WAIT_FOR_VALIDATION   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 64)
#define NS_ERROR_CACHE_ENTRY_DOOMED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 65)
#define NS_ERROR_CACHE_READ_ACCESS_DENIED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 66)
#define NS_ERROR_CACHE_WRITE_ACCESS_DENIED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 67)
#define NS_ERROR_CACHE_IN_USE   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 68)
#define NS_ERROR_DOCUMENT_NOT_CACHED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 70)
 Error passed through onStopRequest if the document could not be fetched from the cache.

Define Documentation

The async request failed because it was aborted by some user action.

Definition at line 71 of file nsNetError.h.

The async request failed for some unknown reason.

Definition at line 65 of file nsNetError.h.

The async request has been "redirected" to a different async request.

(e.g., an HTTP redirect occured).

This error code is used with load groups to notify the load group observer when a request in the load group is redirected to another request.

Definition at line 81 of file nsNetError.h.

The async request has been "retargeted" to a different "handler.".

This error code is used with load groups to notify the load group observer when a request in the load group is removed from the load group and added to a different load group.

Definition at line 91 of file nsNetError.h.

The async request completed successfully.

Definition at line 59 of file nsNetError.h.

The connection is already established.

XXX currently unused - consider removing.

Definition at line 142 of file nsNetError.h.

Definition at line 301 of file nsNetError.h.

Definition at line 298 of file nsNetError.h.

Definition at line 307 of file nsNetError.h.

Definition at line 316 of file nsNetError.h.

Definition at line 295 of file nsNetError.h.

Definition at line 310 of file nsNetError.h.

Definition at line 304 of file nsNetError.h.

Definition at line 313 of file nsNetError.h.

The connection attempt failed, for example, because no server was listening at specified host:port.

Definition at line 156 of file nsNetError.h.

Error passed through onStopRequest if the document could not be fetched from the cache.

Definition at line 323 of file nsNetError.h.

It was attempted to resume the request, but the entity has changed in the meantime.

Definition at line 213 of file nsNetError.h.

Definition at line 239 of file nsNetError.h.

Definition at line 248 of file nsNetError.h.

Definition at line 236 of file nsNetError.h.

Definition at line 242 of file nsNetError.h.

Definition at line 245 of file nsNetError.h.

The requested action could not be completed while the object is busy.

Implementations of nsIChannel::asyncOpen will commonly return this error if the channel has already been opened (and has not yet been closed).

Definition at line 130 of file nsNetError.h.

The URI is malformed.

Definition at line 104 of file nsNetError.h.

The connection was established, but the data transfer was interrupted.

Definition at line 195 of file nsNetError.h.

The connection was established, but no data was ever received.

Definition at line 189 of file nsNetError.h.

The connection was lost due to a timeout error.

Definition at line 168 of file nsNetError.h.

Returned from nsIChannel::asyncOpen to indicate that OnDataAvailable will not be called because there is no content available.

This is used by helper app style protocols (e.g., mailto).

XXX perhaps this should be a success code.

Definition at line 121 of file nsNetError.h.

The connection does not exist.

XXX currently unused - consider removing.

Definition at line 149 of file nsNetError.h.

This request is not resumable, but it was tried to resume it, or to request resume-specific data.

Definition at line 206 of file nsNetError.h.

The requested action could not be completed while the networking library is in the offline state.

Definition at line 175 of file nsNetError.h.

The requested action was prohibited because it would have caused the networking library to establish a connection to an unsafe or otherwise banned port.

Definition at line 183 of file nsNetError.h.

The connection attempt to a proxy failed.

Definition at line 162 of file nsNetError.h.

The request failed as a result of a detected redirection loop.

Definition at line 219 of file nsNetError.h.

The specified socket type could not be created.

Definition at line 285 of file nsNetError.h.

The lookup of a hostname failed.

This generally refers to the hostname from the URL being loaded.

Definition at line 259 of file nsNetError.h.

The URI scheme corresponds to an unknown protocol handler.

Definition at line 110 of file nsNetError.h.

The lookup of a proxy hostname failed.

If a channel is configured to speak to a proxy server, then it will generate this error if the proxy hostname cannot be resolved.

Definition at line 268 of file nsNetError.h.

The specified socket type does not exist.

Definition at line 279 of file nsNetError.h.

The request failed because the content type returned by the server was not a type expected by the channel (for nested channels such as the JAR channel).

Definition at line 227 of file nsNetError.h.