Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
xpcom.nsError Namespace Reference

Functions

def NS_FAILED
def NS_ERROR_GET_CODE
def NS_ERROR_GET_MODULE
def NS_ERROR_GET_SEVERITY
def NS_ERROR_GENERATE_FAILURE
 END OF GENERATED CODE.
def NS_ERROR_GENERATE_SUCCESS

Variables

int NS_ERROR_MODULE_XPCOM = 1
int NS_ERROR_MODULE_BASE = 2
int NS_ERROR_MODULE_GFX = 3
int NS_ERROR_MODULE_WIDGET = 4
int NS_ERROR_MODULE_CALENDAR = 5
int NS_ERROR_MODULE_NETWORK = 6
int NS_ERROR_MODULE_PLUGINS = 7
int NS_ERROR_MODULE_LAYOUT = 8
int NS_ERROR_MODULE_HTMLPARSER = 9
int NS_ERROR_MODULE_RDF = 10
int NS_ERROR_MODULE_UCONV = 11
int NS_ERROR_MODULE_REG = 12
int NS_ERROR_MODULE_FILES = 13
int NS_ERROR_MODULE_DOM = 14
int NS_ERROR_MODULE_IMGLIB = 15
int NS_ERROR_MODULE_MAILNEWS = 16
int NS_ERROR_MODULE_EDITOR = 17
int NS_ERROR_MODULE_XPCONNECT = 18
int NS_ERROR_MODULE_PROFILE = 19
int NS_ERROR_SEVERITY_SUCCESS = 0
int NS_ERROR_SEVERITY_ERROR = 1
int NS_ERROR_MODULE_BASE_OFFSET = 69
int NS_OK = 0
int NS_COMFALSE = 1
tuple NS_ERROR_BASE = ( -1041039360)
tuple NS_ERROR_NOT_INITIALIZED = (NS_ERROR_BASE + 1)
tuple NS_ERROR_ALREADY_INITIALIZED = (NS_ERROR_BASE + 2)
tuple NS_ERROR_NOT_IMPLEMENTED = ( -2147467263)
tuple NS_NOINTERFACE = ( -2147467262)
 NS_ERROR_NO_INTERFACE = NS_NOINTERFACE
tuple NS_ERROR_INVALID_POINTER = ( -2147467261)
 NS_ERROR_NULL_POINTER = NS_ERROR_INVALID_POINTER
tuple NS_ERROR_ABORT = ( -2147467260)
tuple NS_ERROR_FAILURE = ( -2147467259)
tuple NS_ERROR_UNEXPECTED = ( -2147418113)
tuple NS_ERROR_OUT_OF_MEMORY = ( -2147024882)
tuple NS_ERROR_ILLEGAL_VALUE = ( -2147024809)
 NS_ERROR_INVALID_ARG = NS_ERROR_ILLEGAL_VALUE
tuple NS_ERROR_NO_AGGREGATION = ( -2147221232)
tuple NS_ERROR_NOT_AVAILABLE = ( -2147221231)
tuple NS_ERROR_FACTORY_NOT_REGISTERED = ( -2147221164)
tuple NS_ERROR_FACTORY_REGISTER_AGAIN = ( -2147221163)
tuple NS_ERROR_FACTORY_NOT_LOADED = ( -2147221000)
 NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT = \
tuple NS_ERROR_FACTORY_EXISTS = (NS_ERROR_BASE + 256)
tuple NS_ERROR_PROXY_INVALID_IN_PARAMETER = ( -2147418096)
tuple NS_ERROR_PROXY_INVALID_OUT_PARAMETER = ( -2147418095)
tuple NS_BASE_STREAM_CLOSED = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_BASE, 2)
tuple NS_BASE_STREAM_OSERROR = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_BASE, 3)
tuple NS_BASE_STREAM_ILLEGAL_ARGS = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_BASE, 4)
tuple NS_BASE_STREAM_NO_CONVERTER = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_BASE, 5)
tuple NS_BASE_STREAM_BAD_CONVERSION = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_BASE, 6)
tuple NS_BASE_STREAM_WOULD_BLOCK = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_BASE, 7)
tuple NS_ERROR_FILE_UNRECOGNIZED_PATH = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 1)
tuple NS_ERROR_FILE_UNRESOLVABLE_SYMLINK = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 2)
tuple NS_ERROR_FILE_EXECUTION_FAILED = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 3)
tuple NS_ERROR_FILE_UNKNOWN_TYPE = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 4)
tuple NS_ERROR_FILE_DESTINATION_NOT_DIR = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 5)
tuple NS_ERROR_FILE_TARGET_DOES_NOT_EXIST = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 6)
tuple NS_ERROR_FILE_COPY_OR_MOVE_FAILED = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 7)
tuple NS_ERROR_FILE_ALREADY_EXISTS = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 8)
tuple NS_ERROR_FILE_INVALID_PATH = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 9)
tuple NS_ERROR_FILE_DISK_FULL = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 10)
tuple NS_ERROR_FILE_CORRUPTED = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 11)
tuple NS_ERROR_FILE_NOT_DIRECTORY = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 12)
tuple NS_ERROR_FILE_IS_DIRECTORY = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 13)
tuple NS_ERROR_FILE_IS_LOCKED = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 14)
tuple NS_ERROR_FILE_TOO_BIG = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 15)
tuple NS_ERROR_FILE_NO_DEVICE_SPACE = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 16)
tuple NS_ERROR_FILE_NAME_TOO_LONG = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 17)
tuple NS_ERROR_FILE_NOT_FOUND = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 18)
tuple NS_ERROR_FILE_READ_ONLY = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 19)
tuple NS_ERROR_FILE_DIR_NOT_EMPTY = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 20)
tuple NS_ERROR_FILE_ACCESS_DENIED = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 21)
tuple NS_ERROR_ALREADY_CONNECTED = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 11)
 from netCore.h
tuple NS_ERROR_NOT_CONNECTED = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 12)
tuple NS_ERROR_IN_PROGRESS = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 15)
tuple NS_ERROR_OFFLINE = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 16)
tuple NS_ERROR_CONNECTION_REFUSED = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 13)
 from nsISocketTransportService.idl
tuple NS_ERROR_NET_TIMEOUT = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 14)
tuple NS_NET_STATUS_RESOLVING_HOST = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 3)
tuple NS_NET_STATUS_CONNECTED_TO = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 4)
tuple NS_NET_STATUS_SENDING_TO = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 5)
tuple NS_NET_STATUS_RECEIVING_FROM = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 6)
tuple NS_NET_STATUS_CONNECTING_TO = NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 7)

Function Documentation

def xpcom.nsError.NS_ERROR_GENERATE_FAILURE (   module,
  code 
)

END OF GENERATED CODE.

Definition at line 100 of file nsError.py.

00100 
00101 def NS_ERROR_GENERATE_FAILURE(module,code):
00102        return (NS_ERROR_SEVERITY_ERROR<<31) | ((module+NS_ERROR_MODULE_BASE_OFFSET)<<16) | (code)

def xpcom.nsError.NS_ERROR_GENERATE_SUCCESS (   module,
  code 
)

Definition at line 103 of file nsError.py.

00103 
00104 def NS_ERROR_GENERATE_SUCCESS(module,code):
00105        return (NS_ERROR_SEVERITY_SUCCESS<<31) | ((module+NS_ERROR_MODULE_BASE_OFFSET)<<16) | (code)

Definition at line 65 of file nsError.py.

00065 
00066 def NS_ERROR_GET_CODE(err): return ((err) & 65535)

Definition at line 67 of file nsError.py.

00067 
00068 def NS_ERROR_GET_MODULE(err): return (((((err) >> 16) - NS_ERROR_MODULE_BASE_OFFSET) & 8191))

Definition at line 69 of file nsError.py.

00069 
00070 def NS_ERROR_GET_SEVERITY(err): return (((err) >> 31) & 1)

def xpcom.nsError.NS_FAILED (   _nsresult)

Definition at line 60 of file nsError.py.

00060 
00061 def NS_FAILED(_nsresult): return ((_nsresult) & -2147483648)


Variable Documentation

Definition at line 110 of file nsError.py.

Definition at line 106 of file nsError.py.

Definition at line 108 of file nsError.py.

Definition at line 109 of file nsError.py.

Definition at line 107 of file nsError.py.

Definition at line 111 of file nsError.py.

Definition at line 72 of file nsError.py.

tuple xpcom.nsError.NS_ERROR_ABORT = ( -2147467260)

Definition at line 81 of file nsError.py.

from netCore.h

Definition at line 135 of file nsError.py.

Definition at line 75 of file nsError.py.

tuple xpcom.nsError.NS_ERROR_BASE = ( -1041039360)

Definition at line 73 of file nsError.py.

from nsISocketTransportService.idl

Definition at line 142 of file nsError.py.

Definition at line 94 of file nsError.py.

Definition at line 92 of file nsError.py.

Definition at line 91 of file nsError.py.

Definition at line 89 of file nsError.py.

Definition at line 90 of file nsError.py.

tuple xpcom.nsError.NS_ERROR_FAILURE = ( -2147467259)

Definition at line 82 of file nsError.py.

Definition at line 132 of file nsError.py.

Definition at line 119 of file nsError.py.

Definition at line 118 of file nsError.py.

Definition at line 122 of file nsError.py.

Definition at line 116 of file nsError.py.

Definition at line 131 of file nsError.py.

Definition at line 121 of file nsError.py.

Definition at line 114 of file nsError.py.

Definition at line 120 of file nsError.py.

Definition at line 124 of file nsError.py.

Definition at line 125 of file nsError.py.

Definition at line 128 of file nsError.py.

Definition at line 127 of file nsError.py.

Definition at line 123 of file nsError.py.

Definition at line 129 of file nsError.py.

Definition at line 130 of file nsError.py.

Definition at line 117 of file nsError.py.

Definition at line 126 of file nsError.py.

Definition at line 115 of file nsError.py.

Definition at line 112 of file nsError.py.

Definition at line 113 of file nsError.py.

tuple xpcom.nsError.NS_ERROR_ILLEGAL_VALUE = ( -2147024809)

Definition at line 85 of file nsError.py.

Definition at line 138 of file nsError.py.

Definition at line 86 of file nsError.py.

Definition at line 79 of file nsError.py.

Definition at line 42 of file nsError.py.

Definition at line 64 of file nsError.py.

Definition at line 45 of file nsError.py.

Definition at line 54 of file nsError.py.

Definition at line 57 of file nsError.py.

Definition at line 53 of file nsError.py.

Definition at line 43 of file nsError.py.

Definition at line 49 of file nsError.py.

Definition at line 55 of file nsError.py.

Definition at line 48 of file nsError.py.

Definition at line 56 of file nsError.py.

Definition at line 46 of file nsError.py.

Definition at line 47 of file nsError.py.

Definition at line 59 of file nsError.py.

Definition at line 50 of file nsError.py.

Definition at line 52 of file nsError.py.

Definition at line 51 of file nsError.py.

Definition at line 44 of file nsError.py.

Definition at line 41 of file nsError.py.

Definition at line 58 of file nsError.py.

Definition at line 144 of file nsError.py.

tuple xpcom.nsError.NS_ERROR_NO_AGGREGATION = ( -2147221232)

Definition at line 87 of file nsError.py.

Definition at line 78 of file nsError.py.

tuple xpcom.nsError.NS_ERROR_NOT_AVAILABLE = ( -2147221231)

Definition at line 88 of file nsError.py.

Definition at line 137 of file nsError.py.

Definition at line 76 of file nsError.py.

Definition at line 74 of file nsError.py.

Definition at line 80 of file nsError.py.

Definition at line 139 of file nsError.py.

tuple xpcom.nsError.NS_ERROR_OUT_OF_MEMORY = ( -2147024882)

Definition at line 84 of file nsError.py.

Definition at line 95 of file nsError.py.

Definition at line 96 of file nsError.py.

Definition at line 63 of file nsError.py.

Definition at line 62 of file nsError.py.

tuple xpcom.nsError.NS_ERROR_UNEXPECTED = ( -2147418113)

Definition at line 83 of file nsError.py.

Definition at line 148 of file nsError.py.

Definition at line 151 of file nsError.py.

Definition at line 150 of file nsError.py.

Definition at line 147 of file nsError.py.

Definition at line 149 of file nsError.py.

tuple xpcom.nsError.NS_NOINTERFACE = ( -2147467262)

Definition at line 77 of file nsError.py.

Definition at line 71 of file nsError.py.